Skip to content

Commit 4b51d55

Browse files
committed
Get the current month
1 parent d3af492 commit 4b51d55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Time.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace timeUtils
2323
if (local)
2424
{
2525
info.year = local->tm_year + 1900;
26+
info.month = local->tm_mon + 1;
2627
info.day = local->tm_mday;
2728
info.weekDay = local->tm_wday;
2829
info.yearDay = local->tm_yday;

0 commit comments

Comments
 (0)