Browse Source

scripts/rfc3339date.lua: fix pattern validity

Matthias Schiffer 9 years ago
parent
commit
cba86b0211
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/rfc3339date.lua

+ 1 - 1
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)