uppercase for relative times

This commit is contained in:
cquest 2016-06-19 14:18:27 +02:00
parent 639347de8f
commit d05415c694

View file

@ -110,6 +110,7 @@ class EventResource(BaseEvent):
def relative_time(self, when, cur): def relative_time(self, when, cur):
event_start = cur.mogrify("%s",(when,)).decode("utf-8") event_start = cur.mogrify("%s",(when,)).decode("utf-8")
event_stop = cur.mogrify("%s",(when,)).decode("utf-8") event_stop = cur.mogrify("%s",(when,)).decode("utf-8")
when = when.upper()
if when == 'NOW': if when == 'NOW':
event_start = "now()" event_start = "now()"
event_stop = "now()" event_stop = "now()"