about summary refs log tree commit diff
path: root/timeutil.c
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-08-24 19:41:18 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-08-24 19:41:18 +0200
commit551c1b33d04ad8927f5d11d84d0ab72b6738e324 (patch)
tree4b605804d0ab994343167c5118a2553d96c374a6 /timeutil.c
parent4b86f27d7d5f4d5802bc46efde01371137cd489a (diff)
fix(timeutil): only UTC if no daylight saving
Fixes output for BST mostly
Diffstat (limited to 'timeutil.c')
-rw-r--r--timeutil.c2
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 {