aboutsummaryrefslogtreecommitdiff
path: root/modules/github
diff options
context:
space:
mode:
Diffstat (limited to 'modules/github')
-rw-r--r--modules/github/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/github/__init__.py b/modules/github/__init__.py
index 9a9e97a7..0e0d2b73 100644
--- a/modules/github/__init__.py
+++ b/modules/github/__init__.py
@@ -1,7 +1,6 @@
import datetime, itertools, json, math, urllib.parse
from src import ModuleManager, utils
-_ISO8601 = "%Y-%m-%dT%H:%M:%S%z"
FORM_ENCODED = "application/x-www-form-urlencoded"
COMMIT_URL = "https://github.com/%s/commit/%s"
@@ -381,7 +380,7 @@ class Module(ModuleManager.BaseModule):
return url
def _iso8601(self, s):
- return datetime.datetime.strptime(s, _ISO8601)
+ return datetime.datetime.strptime(s, utils.ISO8601_FORMAT)
def ping(self, data):
return ["Received new webhook"]