mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-27 09:24:47 +00:00
Use UTC formats for the 12am os.date tests
We could alternatively use os.time { ... } here, but this feels more "correct"? Fixes #1447
This commit is contained in:
parent
3112f455ae
commit
55ed0dc3ef
@ -100,8 +100,8 @@ describe("The os library", function()
|
|||||||
exp_code("%Y", "2000")
|
exp_code("%Y", "2000")
|
||||||
exp_code("%%", "%")
|
exp_code("%%", "%")
|
||||||
|
|
||||||
it("%r at 12 AM", function() expect(os.date("%r", 1670373922)):eq("12:45:22 AM") end)
|
it("%r at 12 AM", function() expect(os.date("!%r", 1670373922)):eq("12:45:22 AM") end)
|
||||||
it("%I at 12 AM", function() expect(os.date("%I", 1670373922)):eq("12") end)
|
it("%I at 12 AM", function() expect(os.date("!%I", 1670373922)):eq("12") end)
|
||||||
|
|
||||||
it("zones are numbers", function()
|
it("zones are numbers", function()
|
||||||
local zone = os.date("%z", t1)
|
local zone = os.date("%z", t1)
|
||||||
|
Loading…
Reference in New Issue
Block a user