summaryrefslogtreecommitdiff
path: root/src/time.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-10 16:54:13 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-10 16:54:13 +0200
commitea1233fccf4f52f2b4eaab3788a087878d1336fc (patch)
tree30b56ad601bce89464f113e07fbe7d6e40d403a2 /src/time.c
parentd281b7c227bc4c78813fdc297ccee4b2cad7e605 (diff)
downloadvim-git-ea1233fccf4f52f2b4eaab3788a087878d1336fc.tar.gz
patch 8.2.0949: strptime() does not use DSTv8.2.0949
Problem: Strptime() does not use DST. Solution: Set the tm_isdst field to -1. (Tomáš Janoušek, closes #6230)
Diffstat (limited to 'src/time.c')
-rw-r--r--src/time.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/time.c b/src/time.c
index 272a5b5d3..89ff08bdf 100644
--- a/src/time.c
+++ b/src/time.c
@@ -314,6 +314,7 @@ f_strptime(typval_T *argvars, typval_T *rettv)
char_u *enc;
CLEAR_FIELD(tmval);
+ tmval.tm_isdst = -1;
fmt = tv_get_string(&argvars[0]);
str = tv_get_string(&argvars[1]);