mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
migrate bst_date to local_date
This commit is contained in:
@@ -214,9 +214,9 @@ def letter_print_day(created_at):
|
||||
bst_print_datetime = convert_utc_to_local_timezone(created_at) + timedelta(hours=6, minutes=30)
|
||||
bst_print_date = bst_print_datetime.date()
|
||||
|
||||
current_bst_date = convert_utc_to_local_timezone(datetime.utcnow()).date()
|
||||
current_local_date = convert_utc_to_local_timezone(datetime.utcnow()).date()
|
||||
|
||||
if bst_print_date >= current_bst_date:
|
||||
if bst_print_date >= current_local_date:
|
||||
return 'today'
|
||||
else:
|
||||
print_date = bst_print_datetime.strftime('%d %B').lstrip('0')
|
||||
|
||||
Reference in New Issue
Block a user