diff options
| author | Jakob Kaivo <jkk@ung.org> | 2020-08-15 10:40:11 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2020-08-15 10:40:11 -0400 |
| commit | b363e1cae190e2f64f28694d5cc63c774c370a36 (patch) | |
| tree | 1ed29660d27a85ba3280f21dc4ad513ba4b42943 /src/time/ctime.c | |
| parent | b19c5d9433b2ee193e2727a91ff657faf9cfa1cf (diff) | |
add call to tzset()
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)); } |
