mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Use EST to get fixed UTC-5 for traffic date displays.
This commit is contained in:
@@ -661,7 +661,7 @@ class PromotedLinkTraffic(Templated):
|
||||
ctr = _clickthrough_rate(imps, clicks)
|
||||
|
||||
date = date.replace(tzinfo=pytz.utc)
|
||||
date = date.astimezone(pytz.timezone("US/Eastern"))
|
||||
date = date.astimezone(pytz.timezone("EST"))
|
||||
datestr = format_datetime(
|
||||
date,
|
||||
locale=c.locale,
|
||||
|
||||
Reference in New Issue
Block a user