summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyword.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/keyword.c b/keyword.c
index dffd422..d7bd550 100644
--- a/keyword.c
+++ b/keyword.c
@@ -27,6 +27,7 @@ keyword_val get_keyword_value(const keyword *key, char *value, int *error) {
if (key->time_fmt != NULL) {
struct tm tm = {0};
if (strptime(value, key->time_fmt, &tm) != NULL) {
+ tm.tm_isdst = -1;
val.t = mktime(&tm);
} else {
*error = 3;