From cba86b0211c754496010aac46fd052709361c6c0 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 21 Jul 2014 03:44:16 +0200 Subject: [PATCH] scripts/rfc3339date.lua: fix pattern validity --- scripts/rfc3339date.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)