openflighthpc / flight-control

0 stars 0 forks source link

Investigate setting of dates and date range checks #45

Closed timalces closed 1 year ago

timalces commented 2 years ago

Currently there are many places where we set dates using Date.today andTime.now. We should move to using Date.current and Time.current, so that any set timezone is taken into account, and examine anywhere we check for inclusion in date/time ranges to ensure they are working as expected.

Particular attention should be given to events taking place around midnight (such as over budget switch offs), and at the start and end of a month, and the thresholds of daylight savings.