We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8600e4 commit e666690Copy full SHA for e666690
src/github3/repos/stats.py
@@ -20,7 +20,7 @@ def alternate_week(week):
20
:rtype:
21
dict
22
"""
23
- start_of_week = datetime.datetime.utcfromtimestamp(int(week["w"]))
+ start_of_week = datetime.datetime.fromtimestamp(int(week["w"]), datetime.UTC)
24
return {
25
"start of week": start_of_week.replace(tzinfo=dateutil.tz.tzutc()),
26
"additions": week["a"],
0 commit comments