Skip to content

Commit e666690

Browse files
committed
remove deprecated API
1 parent e8600e4 commit e666690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/github3/repos/stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def alternate_week(week):
2020
:rtype:
2121
dict
2222
"""
23-
start_of_week = datetime.datetime.utcfromtimestamp(int(week["w"]))
23+
start_of_week = datetime.datetime.fromtimestamp(int(week["w"]), datetime.UTC)
2424
return {
2525
"start of week": start_of_week.replace(tzinfo=dateutil.tz.tzutc()),
2626
"additions": week["a"],

0 commit comments

Comments
 (0)