Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
20793:d48f8bb5f34e | 20794:2e7acc208a1f |
---|---|
312 char_u *str; | 312 char_u *str; |
313 vimconv_T conv; | 313 vimconv_T conv; |
314 char_u *enc; | 314 char_u *enc; |
315 | 315 |
316 CLEAR_FIELD(tmval); | 316 CLEAR_FIELD(tmval); |
317 tmval.tm_isdst = -1; | |
317 fmt = tv_get_string(&argvars[0]); | 318 fmt = tv_get_string(&argvars[0]); |
318 str = tv_get_string(&argvars[1]); | 319 str = tv_get_string(&argvars[1]); |
319 | 320 |
320 conv.vc_type = CONV_NONE; | 321 conv.vc_type = CONV_NONE; |
321 enc = enc_locale(); | 322 enc = enc_locale(); |