1 parent 448c352 commit 0173a49Copy full SHA for 0173a49
1 file changed
github2/core.py
@@ -6,6 +6,7 @@
6
GITHUB_DATE_FORMAT = "%Y/%m/%d %H:%M:%S"
7
#2009-03-21T18:01:48-07:00
8
COMMIT_DATE_FORMAT = "%Y-%m-%dT%H:%M:%S"
9
+COMMIT_TIMEZONE = "-07:00"
10
11
12
def strptime(string, format):
@@ -55,7 +56,7 @@ def datetime_to_commitdate(datetime_):
55
56
:param str datetime_: datetime object to convert
57
"""
58
date_without_tz = datetime_.strftime(COMMIT_DATE_FORMAT)
- return "".join([date_without_tz, GITHUB_TIMEZONE])
59
+ return "".join([date_without_tz, COMMIT_TIMEZONE])
60
61
62
class GithubCommand(object):
0 commit comments