man-group / notebooker

Productionise & schedule your Jupyter Notebooks as easily as you wrote them.
GNU Affero General Public License v3.0
858 stars 82 forks source link

'Last run X minutes ago' compares UTC to naive timestamp #92

Closed ceallen closed 2 years ago

ceallen commented 2 years ago

This means they're incorrect unless your local timezone is equal to UTC.

In general, any newly generated report will have a 'last run' time of

babel.dates.format_timedelta(datetime.datetime.utcnow() - datetime.datetime.now())

and will just show your difference from UTC.