0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00

patch 8.1.2398: strptime() test fails on Japanese Mac

Problem:    strptime() test fails on Japanese Mac.
Solution:   Use %T instead of %X.
This commit is contained in:
Bram Moolenaar 2019-12-06 12:45:01 +01:00
parent e7dd0deb3c
commit 9a838fe543
2 changed files with 3 additions and 1 deletions

View File

@ -231,7 +231,7 @@ func Test_strptime()
endif
let $TZ = 'UTC'
call assert_equal(1484653763, strptime('%Y-%m-%d %X', '2017-01-17 11:49:23'))
call assert_equal(1484653763, strptime('%Y-%m-%d %T', '2017-01-17 11:49:23'))
call assert_fails('call strptime()', 'E119:')
call assert_fails('call strptime("xxx")', 'E119:')

View File

@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2398,
/**/
2397,
/**/