1
0
Fork 0

Explicitly set the daylight-saving time flag to zero since we specify in GMT

This commit is contained in:
Erik Hofman 2020-10-22 12:02:28 +02:00
parent f3e47ef3b7
commit ef8dc106ce

View file

@ -278,6 +278,7 @@ setDateString (const char * date_string)
// Scan for basic ISO format
// YYYY-MM-DDTHH:MM:SS
new_time.tm_isdst = 0;
int ret = sscanf(date_string, "%d-%d-%dT%d:%d:%d",
&(new_time.tm_year), &(new_time.tm_mon),
&(new_time.tm_mday), &(new_time.tm_hour),
@ -292,7 +293,6 @@ setDateString (const char * date_string)
<< " not in YYYY-MM-DDTHH:MM:SS format; skipped");
return;
}
// OK, it looks like we got six
// values, one way or another.
new_time.tm_year -= 1900;