mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-20 22:39:43 -04:00
remove datetime.utcnow()
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
from datetime import date, datetime, time, timedelta
|
||||
|
||||
from app.utils import utc_now
|
||||
|
||||
|
||||
def get_months_for_financial_year(year):
|
||||
return [
|
||||
@@ -22,7 +24,7 @@ def get_calendar_year_dates(year):
|
||||
|
||||
|
||||
def get_current_calendar_year():
|
||||
now = datetime.utcnow()
|
||||
now = utc_now()
|
||||
current_year = int(now.strftime("%Y"))
|
||||
year = current_year
|
||||
return get_calendar_year(year)
|
||||
|
||||
Reference in New Issue
Block a user