From 8a019c340e0042535ed06ef9609c2b7bdc49b70c Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Sat, 12 Feb 2022 00:30:12 -0600 Subject: [PATCH] quiet warnings by setting timeze --- app/reports.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/reports.py b/app/reports.py index 069288b..71eb836 100644 --- a/app/reports.py +++ b/app/reports.py @@ -35,7 +35,7 @@ def uscore_by_date(date): return render_template('reports/uscore/by_date.html.j2', data=data, date=date) -@scheduler.task("cron", id="gen_item_report", hour=23) +@scheduler.task("cron", id="gen_item_report", hour=23, timezone="UTC") def gen_item_report(): try: current_app.logger.info("Start Item Report Generation") @@ -83,7 +83,7 @@ def gen_item_report(): return -@scheduler.task("cron", id="gen_currency_report", hour=23) +@scheduler.task("cron", id="gen_currency_report", hour=23, timezone="UTC") def gen_currency_report(): try: current_app.logger.info("Start Currency Report Generation") @@ -125,7 +125,7 @@ def gen_currency_report(): return -@scheduler.task("cron", id="gen_uscore_report", hour=23) +@scheduler.task("cron", id="gen_uscore_report", hour=23, timezone="UTC") def gen_uscore_report(): try: current_app.logger.info("Start U-Score Report Generation")