mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Apply suggestions from code review
Updating variable name from et to preferred_tz
This commit is contained in:
@@ -7,8 +7,8 @@ from app.utils.csv import get_user_preferred_timezone
|
||||
|
||||
|
||||
def get_current_financial_year():
|
||||
et = pytz.timezone(get_user_preferred_timezone())
|
||||
now = datetime.now(et)
|
||||
preferred_tz = pytz.timezone(get_user_preferred_timezone())
|
||||
now = datetime.now(preferred_tz)
|
||||
current_month = int(now.strftime("%-m"))
|
||||
current_year = int(now.strftime("%Y"))
|
||||
return current_year if current_month > 9 else current_year - 1
|
||||
|
||||
Reference in New Issue
Block a user