Convert request time to local timezone in report
- Feb 08, 2024
-
-
Thomas Kluyver authored80174245
-
Thomas Kluyver authoredab8b3a32
-
Recent reports have shown a 1 hour gap between the request time and the job submission time. This is because the request time is in UTC, while the others are all in local time. I think this is an unintended consequence of !943 (merged).
This MR aims to fix this by passing around all timestamps as timezone-aware datetime
objects, with the UTC timezone, and converting them to local time for presentation. However, I've left the timestamps we get from Slurm as they are, which seems to be local time.
Deployed as xcaltst, run a correction from a CALLAB test run.
This is the report with this fix:
And here's a recent report from production, without this fix: