Skip to content

travel-team: check closed days against eastern time - #628

Merged
rahearn merged 1 commit into
mainfrom
check-travel-times-against-eastern-time
Oct 2, 2026
Merged

rahearn merged 1 commit into
mainfrom
check-travel-times-against-eastern-time

Conversation

@rahearn

@rahearn rahearn commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

The handler read the current day out of the host timezone. In production that's UTC, so between 7pm and midnight eastern it evaluated the wrong calendar day: silent on a holiday evening, chatty on a workday evening, and naming a holiday as the next workday. It also made the test suite fail for anyone developing east of UTC.

Anchor both the weekday name and the holiday lookup to eastern time so they always agree on which day it is, and cover the evening window.

Co-authored-by: OpenCode ryan.ahearn@gsa.gov


Checklist:

  • Code has been formatted with prettier
  • The OAuth wiki
    page has been updated if Charlie needs any new OAuth events or scopes
  • The Environment Variables
    wiki page has been updated if new environment variables were introduced
    or existing ones changed
  • The dev wiki has been updated, e.g.:
    • local development processes have changed
    • major development workflows have changed
    • internal utilities or APIs have changed
    • testing or deployment processes have changed
  • If appropriate, the NIST 800-218 documentation has been updated

The handler read the current day out of the host timezone. In production
that's UTC, so between 7pm and midnight eastern it evaluated the wrong
calendar day: silent on a holiday evening, chatty on a workday evening,
and naming a holiday as the next workday. It also made the test suite
fail for anyone developing east of UTC.

Anchor both the weekday name and the holiday lookup to eastern time so
they always agree on which day it is, and cover the evening window.

Co-authored-by: OpenCode <ryan.ahearn@gsa.gov>
@rahearn
rahearn requested a review from a team as a code owner October 2, 2026 15:26
@rahearn
rahearn enabled auto-merge October 2, 2026 15:27
@rahearn
rahearn merged commit 49f2672 into main Oct 2, 2026
7 checks passed
@rahearn
rahearn deleted the check-travel-times-against-eastern-time branch October 2, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants