diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2020-08-24 19:41:18 +0200 |
---|---|---|
committer | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2020-08-24 19:41:18 +0200 |
commit | 551c1b33d04ad8927f5d11d84d0ab72b6738e324 (patch) | |
tree | 4b605804d0ab994343167c5118a2553d96c374a6 /timeutil.c | |
parent | 4b86f27d7d5f4d5802bc46efde01371137cd489a (diff) |
fix(timeutil): only UTC if no daylight saving
Fixes output for BST mostly
Diffstat (limited to 'timeutil.c')
-rw-r--r-- | timeutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/timeutil.c b/timeutil.c index c79b850..4168130 100644 --- a/timeutil.c +++ b/timeutil.c @@ -40,7 +40,7 @@ size_t flocaltime(char *b, enum time_format type, size_t size, const time_t *tim size_t offset_size = 7; char offset[offset_size]; - if(timezone == 0) { + if(timezone == 0 && !local->tm_isdst) { offset[0] = 'Z'; offset[1] = '\0'; } else { |