browsertrix icon indicating copy to clipboard operation
browsertrix copied to clipboard

Fix serialization of datetimes to include Z suffix

Open tw4l opened this issue 1 year ago • 1 comments
trafficstars

We store datetimes in UTC but they are not returned with a Z suffix from the API, which requires us to manually add it in the frontend.

We should modify serialization to return timezone from the API. See: https://stackoverflow.com/questions/66548586/how-to-change-date-format-in-pydantic

Ideally we could do this globally so we don't need to modify every class with a datetime.

The PR should also update the frontend where a Z is being added manually.

tw4l avatar Jul 11 '24 20:07 tw4l