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.
Currently there are many places where we set dates using
Date.today
andTime.now
. We should move to usingDate.current
andTime.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.