aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortstsrt <41282711+tstsrt@users.noreply.github.com>2025-04-04 03:59:29 +0000
committerGitHub <noreply@github.com>2025-04-04 11:59:29 +0800
commitd9405c7935d4c826476029d16ecb95a0478cd58d (patch)
treef31390b6010c26ffb82d6f3f76b9358238904d32
parent4ef9dcb1eb7d969687872699d92e0860f3c9ff3a (diff)
downloadrneovim-d9405c7935d4c826476029d16ecb95a0478cd58d.tar.gz
rneovim-d9405c7935d4c826476029d16ecb95a0478cd58d.tar.bz2
rneovim-d9405c7935d4c826476029d16ecb95a0478cd58d.zip
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.
-rw-r--r--test/functional/plugin/shada_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/plugin/shada_spec.lua b/test/functional/plugin/shada_spec.lua
index f33819f364..ca005d9f12 100644
--- a/test/functional/plugin/shada_spec.lua
+++ b/test/functional/plugin/shada_spec.lua
@@ -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 {