workfloworchestrator / orchestrator-core-gui

The orchestrator frontend.
Apache License 2.0
7 stars 10 forks source link

Fix hard coded timezone #233

Closed Sparrow1029 closed 1 year ago

Sparrow1029 commented 1 year ago

Though orchestrator-core stores all timestamps in UTC, the GUI currently displays the time in CET (Europe/Amsterdam) timezone. This value is hard-coded into the render function for timestamp cells.

The aim of this PR is to add the ability for an org to configure their desired timezone from the backend file, to remove the hard-coded "en-GB" locale string (passing in as an environment variable), and to use moment-timezone to convert timestamps to a proper time string.

In future, it would be nice to make the displayed timezone configurable via settings options per-user/client/browser in the web interface.