diff options
Diffstat (limited to 'xs_time.h')
| -rw-r--r-- | xs_time.h | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -46,6 +46,7 @@ time_t xs_parse_time(const char *str, const char *fmt, int local) | |||
| 46 | memset(&tm, '\0', sizeof(tm)); | 46 | memset(&tm, '\0', sizeof(tm)); |
| 47 | strptime(str, fmt, &tm); | 47 | strptime(str, fmt, &tm); |
| 48 | 48 | ||
| 49 | /* try to guess the Daylight Saving Time */ | ||
| 49 | if (local) | 50 | if (local) |
| 50 | tm.tm_isdst = -1; | 51 | tm.tm_isdst = -1; |
| 51 | 52 | ||