diff --git a/date/date.cpp b/date/date.cpp index e1277bc..75277a2 100644 --- a/date/date.cpp +++ b/date/date.cpp @@ -424,6 +424,8 @@ tm t; t.tm_hour = hour; t.tm_min = min; t.tm_sec = sec; + t.tm_wday = WeekDay(); + // t.tm_yday is not set return t; }