From 52f5cc77f2fe36e08877798764270c3d1ee49005 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 29 Mar 2015 15:53:07 +0200 Subject: [PATCH] fix --- rssnotify.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rssnotify.py b/rssnotify.py index a220048..2551431 100755 --- a/rssnotify.py +++ b/rssnotify.py @@ -12,6 +12,8 @@ import feedparser # sudo pip install feedparser rssnotify = {} def to_unix_time(tstr): + if tstr.endswith("Z"): + tstr = tstr[:-1] + "+00:00" r = re.compile(r"(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2})([-+])(\d{2}):(\d{2})") g = r.match(tstr).groups(1) # This function would be like 100% shorter if the time library didn't suck so hard.