Commit 6e290ffe authored by pitchum's avatar pitchum
Browse files

Bugfix: cron_task fails when last_update_success is null in DB.

parent 4d3c9822
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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']))