GOCDB / gocdb

Grid Operations Configuration Management Database. A Repository, Portal and REST style API for managing Grid and Cloud topology objects including; projects, administrative domains, sites, services, service-endpoints, service-groups, downtimes, users, roles and business rules.
Apache License 2.0
12 stars 27 forks source link

Timezone improvements to `{add, edit}_downtime` #495

Open gregcorbett opened 8 months ago

gregcorbett commented 8 months ago

Relates to #86

The Javascript elements on the downtime pages lead to some confusing behaviour when time offsets change (i.e. summer time to winter time).

image

In this case, the downtime should end at 30/10/2023 12:00 UTC, not 11:00 UTC - as the London/Europe timezone on the 30th is UTC. But when the downtime was entered, the London/Europe timezone was UTC-1 - hence 12:00.

gregcorbett commented 8 months ago

A braver solution is reworking the timezone logic. We should look as to how feasible this is.

A good first step would be to create a toy example similar to the downtime page date/time picker that can handle StartTime and EndTime being in two different UTC offsets