Skip to content
Snippets Groups Projects
Commit cba86b02 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

scripts/rfc3339date.lua: fix pattern validity

parent cd0d7715
No related branches found
No related tags found
No related merge requests found
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment