PlainDate.yearOfWeek and PlainDate.weekOfYear not adhering to the standard #27
Closed
Description
First things first, I'm not a 100% certain of this one, but I think both fields are using a sunday-saturday week instead of the ISO 8601 Monday-Sunday weeks, resulting in wrong week days for edge cases like 2021-01-03.
https://myweb.ecu.edu/mccartyr/isowdcal.html shows said date as being inside 2020-W53, but the following snippet returns '2021-W1' instead
date = Temporal.PlainDate.from('2020-01-03');
console.log(`${date.yearOfWeek}-W${date.weekOfYear}`); // => Should be '2020-W53'
Might be related to #26
Metadata
Assignees
Labels
No labels