You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2017/10/21 09:59:46 UTC
[kibble-scanners] branch master updated: needs to be forced UTC here
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git
The following commit(s) were added to refs/heads/master by this push:
new 539a52f needs to be forced UTC here
539a52f is described below
commit 539a52f3e9a0ea8205c401adaffec94cc63cfc78
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sat Oct 21 11:59:38 2017 +0200
needs to be forced UTC here
---
src/plugins/scanners/git-evolution.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/plugins/scanners/git-evolution.py b/src/plugins/scanners/git-evolution.py
index e218ec3..3cabef6 100644
--- a/src/plugins/scanners/git-evolution.py
+++ b/src/plugins/scanners/git-evolution.py
@@ -20,6 +20,7 @@ import os
import subprocess
import re
import time
+import calendar
import datetime
import plugins.utils.git
import plugins.utils.sloc
@@ -165,7 +166,7 @@ def scan(KibbleBit, source):
while now > ts:
pd = datetime.datetime(year, quarter, 1).replace(tzinfo=datetime.timezone.utc).timetuple()
date = time.strftime("%Y-%b-%d 0:00", pd)
- unix = time.mktime(pd)
+ unix = calendar.timegm(pd)
# Skip the dates we've already processed
dhash = hashlib.sha224((source['sourceID'] + date).encode('ascii',
--
To stop receiving notification emails like this one, please contact
['"commits@kibble.apache.org" <co...@kibble.apache.org>'].