mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
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 #6230)
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
Reference in New Issue
Block a user