mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Merge branch 'main' into 1006-new-api-failed-and-delivered-messages-7-days
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import calendar
|
||||
from datetime import date, datetime, time, timedelta
|
||||
|
||||
from app.utils import utc_now
|
||||
|
||||
|
||||
def get_months_for_financial_year(year):
|
||||
return [
|
||||
@@ -23,7 +25,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