Skip to content

fix: replace deprecated YYYY with yyyy in date pipe for Angular 19 compatibility#21330

Open
savoiadiego wants to merge 1 commit intoSAP:developfrom
savoiadiego:develop
Open

fix: replace deprecated YYYY with yyyy in date pipe for Angular 19 compatibility#21330
savoiadiego wants to merge 1 commit intoSAP:developfrom
savoiadiego:develop

Conversation

@savoiadiego
Copy link
Copy Markdown

Angular 19 enforces stricter validation of date format tokens in DatePipe, aligning with the Unicode Date Field Symbol Specification.

The token 'YYYY' (week-based year) is no longer accepted in this context and can lead to runtime errors. It has been replaced with 'yyyy' (calendar year), which is the correct format for all existing use cases in Spartacus.

This change ensures compatibility with Angular 19 and prevents incorrect year formatting around ISO week boundaries.

…mpatibility

Angular 19 enforces stricter validation of date format tokens in DatePipe, aligning with the Unicode Date Field Symbol Specification.

The token 'YYYY' (week-based year) is no longer accepted in this context and can lead to runtime errors. It has been replaced with 'yyyy' (calendar year), which is the correct format for all existing use cases in Spartacus.

This change ensures compatibility with Angular 19 and prevents incorrect year formatting around ISO week boundaries.
@savoiadiego savoiadiego requested a review from a team as a code owner April 2, 2026 19:24
@cla-assistant
Copy link
Copy Markdown

cla-assistant bot commented Apr 2, 2026

CLA assistant check
All committers have signed the CLA.

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.

1 participant