-
Notifications
You must be signed in to change notification settings - Fork 267
FIX: not sure if this year needs updating... #13691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: latest
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
MomentTimezoneIncludeendYearfrom 2025 to 2026 in Next.js config.
|
|
||
| config.plugins.push( | ||
| new MomentTimezoneInclude({ startYear: 2010, endYear: 2025 }), | ||
| new MomentTimezoneInclude({ startYear: 2010, endYear: 2026 }), |
Copilot
AI
Feb 9, 2026
There was a problem hiding this comment.
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.
|
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 }), |
There was a problem hiding this comment.
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() ?
There was a problem hiding this comment.
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
... but the year was set to last year