mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Return datetimes with tzinfo=g.tz from get_total_run.
This commit is contained in:
@@ -873,8 +873,8 @@ def get_total_run(thing):
|
||||
earliest = latest - timedelta(days=30) # last month
|
||||
|
||||
# ugh this stuff is a mess. they're stored as "UTC" but actually mean UTC-5.
|
||||
earliest = earliest.replace(tzinfo=None) - timezone_offset
|
||||
latest = latest.replace(tzinfo=None) - timezone_offset
|
||||
earliest = earliest.replace(tzinfo=g.tz) - timezone_offset
|
||||
latest = latest.replace(tzinfo=g.tz) - timezone_offset
|
||||
|
||||
return earliest, latest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user