diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-10 16:54:13 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-10 16:54:13 +0200 |
commit | ea1233fccf4f52f2b4eaab3788a087878d1336fc (patch) | |
tree | 30b56ad601bce89464f113e07fbe7d6e40d403a2 /src/time.c | |
parent | d281b7c227bc4c78813fdc297ccee4b2cad7e605 (diff) |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/time.c b/src/time.c index 272a5b5d3b..89ff08bdf4 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]); |