vim-patch:8.1.2398: strptime() test fails on Japanese Mac

Problem:    strptime() test fails on Japanese Mac.
Solution:   Use %T instead of %X.
9a838fe543
This commit is contained in:
Jan Edmund Lazo 2020-12-06 11:02:06 -05:00
parent 3261ba98a2
commit 93e9cf4b6c
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -223,7 +223,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:')