Repository navigation
fix(gottext): write a bare calendar day with only the parts it is handed - #152
Conversation
This comment has been minimized.
This comment has been minimized.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
[Medium impact] The PR appears safe to merge, with no outstanding findings.
|
There was a problem hiding this comment.
Gates Passed
4 Quality Gates Passed
See analysis details in CodeScene
Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.
Closes #151
What
formatDatereads each date option of a bare calendar day by name from the object it is handed, then shows the day in UTC.Why
The options of a bare day were rebuilt from
resolvedOptions, which reads letters inside quoted pattern text as fields. So es-ES, pt-BR and ca-ES gained a day on{ month: 'long', year: 'numeric' }, eu gained an hour, and a calendar such as-u-ca-chineselost its year.Testing
30 de septiembre de 2026and08-07.Summary by CodeRabbit
timeStylewhen formatting either a bare date or a timestamp now raises aTypeError.