Skip to content

Conversation

@eagerterrier
Copy link
Contributor

... but the year was set to last year

Copilot AI review requested due to automatic review settings February 9, 2026 12:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Moment Timezone include range so builds continue to ship required timezone data now that the configured end year had fallen behind.

Changes:

  • Bumps MomentTimezoneInclude endYear from 2025 to 2026 in Next.js config.


config.plugins.push(
new MomentTimezoneInclude({ startYear: 2010, endYear: 2025 }),
new MomentTimezoneInclude({ startYear: 2010, endYear: 2026 }),
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard-coding endYear means this config will require yearly maintenance and is easy to forget (as happened with 2025). Consider deriving endYear dynamically (e.g., from the current year, optionally with a small buffer like currentYear + 1) so the build won’t silently start excluding future timezone data.

Copilot uses AI. Check for mistakes.
@amoore108
Copy link
Contributor

There are a few other instances of this in Cypress and in the Express app webpack config that'll need updated too.

Curious if this is doing much though if we haven't noticed any odd behaviour in the last month?


config.plugins.push(
new MomentTimezoneInclude({ startYear: 2010, endYear: 2025 }),
new MomentTimezoneInclude({ startYear: 2010, endYear: 2026 }),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could probably use endYear: new Date().getFullYear() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe. Wonder if there would be a performance hit there

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.

4 participants