Commit 6e290ffe authored by pitchum's avatar pitchum

Bugfix: cron_task fails when last_update_success is null in DB.

parent 4d3c9822
......@@ -59,6 +59,8 @@ def tosystemtz(d):
Convert the UTC datetime ``d`` to the system time zone defined in the settings
if d is None:
return 'None'
return d.astimezone(pytz.timezone(current_app.config['SYSTEM_TIME_ZONE']))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment