diff src/time.c @ 20794:2e7acc208a1f v8.2.0949

patch 8.2.0949: strptime() does not use DST Commit: https://github.com/vim/vim/commit/ea1233fccf4f52f2b4eaab3788a087878d1336fc Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 10 16:54:13 2020 +0200 patch 8.2.0949: strptime() does not use DST Problem: Strptime() does not use DST. Solution: Set the tm_isdst field to -1. (Tom?? Janou?ek, closes https://github.com/vim/vim/issues/6230)
author Bram Moolenaar <Bram@vim.org>
date Wed, 10 Jun 2020 17:00:04 +0200
parents aadd1cae2ff5
children ba81f5e300b7
line wrap: on
line diff
--- a/src/time.c
+++ b/src/time.c
@@ -314,6 +314,7 @@ f_strptime(typval_T *argvars, typval_T *
     char_u	*enc;
 
     CLEAR_FIELD(tmval);
+    tmval.tm_isdst = -1;
     fmt = tv_get_string(&argvars[0]);
     str = tv_get_string(&argvars[1]);