mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Updated frontend call to include local timezone
This commit is contained in:
@@ -99,8 +99,12 @@ def get_daily_stats():
|
||||
service_id = session.get("service_id")
|
||||
date_range = get_stats_date_range()
|
||||
|
||||
# Get timezone from request (default to UTC if not provided)
|
||||
user_timezone = request.args.get("timezone", "UTC")
|
||||
print(f"Detected User Timezone test124: {user_timezone}")
|
||||
|
||||
stats = service_api_client.get_service_notification_statistics_by_day(
|
||||
service_id, start_date=date_range["start_date"], days=date_range["days"]
|
||||
service_id, start_date=date_range["start_date"], days=date_range["days"], timezone=user_timezone
|
||||
)
|
||||
return jsonify(stats)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user