Skip to content

Commit 06642c1

Browse files
Fix constructing Date in a daylight saving timezone (#140)
1 parent 025d7d6 commit 06642c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

trantor/utils/Date.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ Date::Date(unsigned int year,
344344
{
345345
struct tm tm;
346346
memset(&tm, 0, sizeof(tm));
347+
tm.tm_isdst = -1;
347348
time_t epoch;
348349
tm.tm_year = year - 1900;
349350
tm.tm_mon = month - 1;

0 commit comments

Comments
 (0)