mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-26 01:04:00 -04:00
put timezone dt in config
This commit is contained in:
@@ -77,8 +77,8 @@ def get_time_value_and_label(future_time):
|
||||
return (
|
||||
future_time.replace(tzinfo=None).isoformat(),
|
||||
'{} at {} ET'.format(
|
||||
get_human_day(future_time.astimezone(pytz.timezone(current_app.config['TIMEZONE']))),
|
||||
get_human_time(future_time.astimezone(pytz.timezone(current_app.config['TIMEZONE'])))
|
||||
get_human_day(future_time.astimezone(current_app.config['PY_TIMEZONE'])),
|
||||
get_human_time(future_time.astimezone(current_app.config['PY_TIMEZONE']))
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@ from app.main import main
|
||||
@main.route("/performance")
|
||||
def performance():
|
||||
stats = performance_dashboard_api_client.get_performance_dashboard_stats(
|
||||
start_date=(datetime.now(pytz.timezone(current_app.config['TIMEZONE'])) - timedelta(days=7)).date(),
|
||||
end_date=datetime.now(pytz.timezone(current_app.config['TIMEZONE'])).date(),
|
||||
start_date=(datetime.now(current_app.config['PY_TIMEZONE']) - timedelta(days=7)).date(),
|
||||
end_date=datetime.now(current_app.config['PY_TIMEZONE']).date(),
|
||||
)
|
||||
stats['organisations_using_notify'] = sorted(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user