diff options
Diffstat (limited to 'src/time/mktime.c')
| -rw-r--r-- | src/time/mktime.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/time/mktime.c b/src/time/mktime.c index d19ad8d6..3b415b4c 100644 --- a/src/time/mktime.c +++ b/src/time/mktime.c @@ -10,6 +10,10 @@ time_t mktime(struct tm * timeptr) ASSERT_NONNULL(timeptr); + #ifdef _POSIX_SOURCE + tzset(); + #endif + while (timeptr->tm_sec < 0) { timeptr->tm_min--; timeptr->tm_sec += SEC_PER_MIN; |
