From 467bc4356a7a19b6c9da9759f461a2426fe4e3c3 Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Tue, 28 Jan 2020 12:17:59 -0800 Subject: [PATCH] rank_hugo_themes.py fix changed commit date result from gitlab api --- rank_hugo_themes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rank_hugo_themes.py b/rank_hugo_themes.py index 77dfa97..37584f2 100755 --- a/rank_hugo_themes.py +++ b/rank_hugo_themes.py @@ -289,7 +289,7 @@ def get_commit_info_for_hugo_themes_from_gitlab(): response = get(api_call_url) if response.status_code == 200: result = response.json() - theme.commit_date = match.sub(r'\2',result['created_at']) + theme.commit_date = (match.sub(r'\2',result['created_at']))[0:19] + 'Z' theme.commit_date_in_seconds = timegm(strptime(theme.commit_date,'%Y-%m-%dT%H:%M:%SZ')) session.commit() elif response.status_code == 403: