You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 28, 2024. It is now read-only.
In the Cron repo, the file CovidTranslationPrApproval/AutoApprover.js contains a DST-sensitive bug that triggers on the two Sundays of the year when DST kicks in.
The expression moment().startOf('day') will produce a timestamp from before DST kicked in. Adding a fixed number of hours to that will produce a time that is 1 hour different than desired. For example, 10am on Nov 7 occurs 11 hours after midnight.
Suggested fix is to formulate a complete date/time rather than doing an offset off of midnight.
Suggested method -- the basic idea is to pass a fully formed date and time string to moment() rather than initializing the timestamp at midnight and adding hours.
In the Cron repo, the file CovidTranslationPrApproval/AutoApprover.js contains a DST-sensitive bug that triggers on the two Sundays of the year when DST kicks in.
The expression moment().startOf('day') will produce a timestamp from before DST kicked in. Adding a fixed number of hours to that will produce a time that is 1 hour different than desired. For example, 10am on Nov 7 occurs 11 hours after midnight.
Suggested fix is to formulate a complete date/time rather than doing an offset off of midnight.
The text was updated successfully, but these errors were encountered: