scripts/rfc3339date.lua: fix pattern validity

This commit is contained in:
Matthias Schiffer 2014-07-21 03:44:16 +02:00
parent cd0d771568
commit cba86b0211

View File

@ -1,5 +1,5 @@
local time = os.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)