mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
test(plugin/shada_spec): failure if timezone isn't a whole hour ahead of UTC (#33257)
Problem: When running functional tests locally, test `syntax/shada.vim works`
fails if the local timezone is not a whole number of hours ahead of UTC.
Solution: Use '!%M' for minute format so that UTC is used in the expected
timestamp instead of the local timezone, just like '%H' for hours.
(cherry picked from commit d9405c7935
)
This commit is contained in:
committed by
github-actions[bot]
parent
4cc97cf009
commit
cbf4906c11
@ -3170,8 +3170,8 @@ describe('syntax/shada.vim', function()
|
||||
month = htsnum(os.date('%m', 0)),
|
||||
day = htsnum(os.date('%d', 0)),
|
||||
hour = htsnum(os.date('!%H', 0)),
|
||||
minute = htsnum(os.date('%M', 0)),
|
||||
second = htsnum(os.date('%S', 0)),
|
||||
minute = htsnum(os.date('!%M', 0)),
|
||||
second = htsnum(os.date('!%S', 0)),
|
||||
}
|
||||
local msh = function(s)
|
||||
return {
|
||||
|
Reference in New Issue
Block a user