From 81c0b2f4b243ea321e85bf9a8fc4fef552c7facd Mon Sep 17 00:00:00 2001 From: cquest Date: Mon, 13 Jun 2016 23:42:40 +0200 Subject: [PATCH] fix LAST/NEXT HOUR/DAY/MINUTE, etc --- backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend.py b/backend.py index db5b857..f5fc06c 100644 --- a/backend.py +++ b/backend.py @@ -124,7 +124,7 @@ class EventResource(BaseEvent): event_stop = "CURRENT_DATE" m = re.match('(LAST|NEXT)(MONTH|WEEK|DAY|HOUR|MINUTE)',when) if m is not None: - when = m.group(1)+m.group(2)+'S' + when = m.group(1)+'1'+m.group(2)+'S' m = re.match('(LAST|NEXT)([0-9]*)(MONTH|WEEK|MINUTE|HOUR|DAY)S',when) if m is not None: if m.group(1) == 'LAST':