mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
PromotedLinkTraffic: set chart date to EST.
This commit is contained in:
@@ -530,9 +530,9 @@ class PromotedLinkTraffic(RedditTraffic):
|
||||
self.total_clicks += clicks
|
||||
|
||||
date = date.replace(tzinfo=pytz.utc)
|
||||
date = date.astimezone(pytz.timezone("US/Eastern"))
|
||||
datestr = format_datetime(
|
||||
date,
|
||||
tzinfo=pytz.timezone("US/Eastern"),
|
||||
locale=c.locale,
|
||||
format="yyyy-MM-dd HH:mm zzz",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user