Code review comment for lp:~liuyq0307/lava-scheduler/fix-861149

Revision history for this message
Yongqin Liu (liuyq0307) wrote :

> This is wrong, don't do this.
>
> Using utcnow() is correct, rendering the timezone should be fixed instead. If
> we have legacy records that used now() vs utcnow() we can either fix them in
> the datbase or just ignore them.
>
> Look up django's TZ setting for details.

Do you mean to add one line [TIME_ZONE = 'GMT'] to the settings of lava-server
(file:lava-server/lava_server/settings/debian.py)?

If so, this doesn't make any change:(

« Back to merge proposal