fix to_time_t to honor dst
This commit is contained in:
parent
6b4050ab9c
commit
1ebef0d7a3
@ -469,6 +469,7 @@ time_t to_time_t(char *timestring)
|
|||||||
breakdown.tm_hour = hour;
|
breakdown.tm_hour = hour;
|
||||||
breakdown.tm_min = min;
|
breakdown.tm_min = min;
|
||||||
breakdown.tm_sec = sec;
|
breakdown.tm_sec = sec;
|
||||||
|
breakdown.tm_isdst = -1;
|
||||||
result = mktime(&breakdown);
|
result = mktime(&breakdown);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user