tFix strptime parsing bug - amprolla - devuan's apt repo merger
HTML git clone git://parazyd.org/amprolla.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 7c32db96981f1271c8941a55ed384256113305ff
DIR parent ba4cba3037ca32d3a46a06d3ddea099c67607a98
HTML Author: parazyd <parazyd@dyne.org>
Date: Sat, 9 Dec 2017 16:19:50 +0100
Fix strptime parsing bug
Diffstat:
M lib/parse.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/lib/parse.py b/lib/parse.py
t@@ -13,8 +13,8 @@ def get_time(date):
"""
if not date:
# hardcode if something's amiss
- date = 'Sun, 29 Oct 2017 10:00:00 +0200'
- return mktime(strptime(date, "%a, %d %b %Y %H:%M:%S %Z"))
+ date = 'Sun, 29 Oct 2017 10:00:00 UTC'
+ return mktime(strptime(date, '%a, %d %b %Y %H:%M:%S %Z'))
def get_date(relfile):