Loading ffdnispdb/utils.py +2 −0 Original line number Diff line number Diff line Loading @@ -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'])) Loading Loading
ffdnispdb/utils.py +2 −0 Original line number Diff line number Diff line Loading @@ -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'])) Loading