mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
Refactored get utc in bst to use localize
This commit is contained in:
@@ -52,7 +52,7 @@ def get_midnight_for_day_before(date):
|
||||
|
||||
|
||||
def get_utc_time_in_bst(utc_dt):
|
||||
return utc_dt.replace(tzinfo=pytz.utc).astimezone(local_timezone).replace(tzinfo=None)
|
||||
return pytz.utc.localize(utc_dt).astimezone(local_timezone).replace(tzinfo=None)
|
||||
|
||||
|
||||
def get_london_month_from_utc_column(column):
|
||||
|
||||
Reference in New Issue
Block a user