migrate bst_date to local_date

This commit is contained in:
stvnrlly
2022-11-21 11:49:59 -05:00
parent 99de747a36
commit 9e7ee1c0f8
39 changed files with 315 additions and 315 deletions

View File

@@ -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')