aboutsummaryrefslogtreecommitdiff
path: root/modules/git_webhooks/github.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git_webhooks/github.py')
-rw-r--r--modules/git_webhooks/github.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/git_webhooks/github.py b/modules/git_webhooks/github.py
index 96dc26c3..a3f51c89 100644
--- a/modules/git_webhooks/github.py
+++ b/modules/git_webhooks/github.py
@@ -183,7 +183,7 @@ class GitHub(object):
return url
def _iso8601(self, s):
- return utils.datetime.iso8601_parse(s)
+ return utils.datetime.parse.iso8601(s)
def ping(self, data):
return ["Received new webhook"]
@@ -444,7 +444,8 @@ class GitHub(object):
completed_at = self._iso8601(data["check_run"]["completed_at"])
if completed_at > started_at:
seconds = (completed_at-started_at).total_seconds()
- duration = " in %s" % utils.datetime.to_pretty_time(seconds)
+ duration = " in %s" % utils.datetime.format.to_pretty_time(
+ seconds)
status = data["check_run"]["status"]
status_str = ""