diff --git a/scripts/rfc3339date.lua b/scripts/rfc3339date.lua index 68ca34b1..2ccbd4d4 100644 --- a/scripts/rfc3339date.lua +++ b/scripts/rfc3339date.lua @@ -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)