diff options
Diffstat (limited to 'src/time/ctime.c')
| -rw-r--r-- | src/time/ctime.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/time/ctime.c b/src/time/ctime.c index 5619e316..fd40655f 100644 --- a/src/time/ctime.c +++ b/src/time/ctime.c @@ -4,6 +4,10 @@ char * ctime(const time_t * timer) { + #ifdef _POSIX_SOURCE + tzset(); + #endif + return asctime(localtime(timer)); } |
