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 2019/04/27 04:38:51 UTC

[kibble-scanners] branch master updated: Commit timestamps should have H:M:S as well, not just days

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 8de0240  Commit timestamps should have H:M:S as well, not just days
8de0240 is described below

commit 8de0240f41b1139949bef4ed72660e5543837d1e
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Fri Apr 26 23:38:47 2019 -0500

    Commit timestamps should have H:M:S as well, not just days
---
 src/plugins/scanners/git-census.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/scanners/git-census.py b/src/plugins/scanners/git-census.py
index 74f47db..f5cc69d 100644
--- a/src/plugins/scanners/git-census.py
+++ b/src/plugins/scanners/git-census.py
@@ -187,7 +187,7 @@ def scan(KibbleBit, source):
                     'organisation': source['organisation'],
                     'ts': ct,
                     'tsday': tsd,
-                    'date': time.strftime("%Y/%m/%d %H:%M:%S", time.gmtime(ts)),
+                    'date': time.strftime("%Y/%m/%d %H:%M:%S", time.gmtime(ct)),
                     'committer_name': cn,
                     'committer_email': ce,
                     'author_name': an,
@@ -203,7 +203,7 @@ def scan(KibbleBit, source):
                     'sourceID': source['sourceID'], # Only ever the last source with this
                     'ts': ct,
                     'tsday': tsd,
-                    'date': time.strftime("%Y/%m/%d %H:%M:%S", time.gmtime(ts)),
+                    'date': time.strftime("%Y/%m/%d %H:%M:%S", time.gmtime(ct)),
                     'committer_name': cn,
                     'committer_email': ce,
                     'author_name': an,