diff options
author | Erich Eckner <git@eckner.net> | 2020-06-04 09:09:01 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-06-04 09:09:01 +0200 |
commit | 67f72eb31718f4a584ad164dd9a54fa758ca0fc9 (patch) | |
tree | 0c6fad3975bde534a9d6b5c3838376617a962cc4 /input_gadgets.c | |
parent | a03c1fc34ef52845081970c4ebbe5e3b25395702 (diff) | |
download | anzeige-67f72eb31718f4a584ad164dd9a54fa758ca0fc9.tar.xz |
input_gadgets.c: correctly handle DST
Diffstat (limited to 'input_gadgets.c')
-rw-r--r-- | input_gadgets.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/input_gadgets.c b/input_gadgets.c index 136cbb9..97351c4 100644 --- a/input_gadgets.c +++ b/input_gadgets.c @@ -844,6 +844,8 @@ char *gadgets_retrieve_weather_warnings(char *output, int max_len) zip_discard(za); return NULL; } + if (text[20]=='2') + time_struct.tm_isdst = 1; xmlFree(text); warnings[warnings_len].onset = mktime(&time_struct); memset(&time_struct, 0, sizeof(time_struct)); @@ -862,6 +864,8 @@ char *gadgets_retrieve_weather_warnings(char *output, int max_len) zip_discard(za); return NULL; } + if (text[20]=='2') + time_struct.tm_isdst = 1; xmlFree(text); warnings[warnings_len].expires = mktime(&time_struct); } else |