scripts/rfc3339date.lua: fix pattern validity
This commit is contained in:
parent
cd0d771568
commit
cba86b0211
@ -1,5 +1,5 @@
|
|||||||
local time = os.time()
|
local time = os.time()
|
||||||
local timestamp = os.date('%F %T', time)
|
local timestamp = os.date('%F %T', time)
|
||||||
local timezone = os.date('%z', time):gsub('^([+-]%d%d)(%d%d)$', '%1:%2')
|
local timezone = os.date('%z', time):gsub('^([%+%-]%d%d)(%d%d)$', '%1:%2')
|
||||||
|
|
||||||
print(timestamp .. timezone)
|
print(timestamp .. timezone)
|
||||||
|
Loading…
Reference in New Issue
Block a user