Skip to content
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

wrong yearOfWeek/weekOfYear for gregory calendar #53

Open
o-t-w opened this issue Jan 6, 2025 · 0 comments
Open

wrong yearOfWeek/weekOfYear for gregory calendar #53

o-t-w opened this issue Jan 6, 2025 · 0 comments

Comments

@o-t-w
Copy link

o-t-w commented Jan 6, 2025

I am basing the correct behaviour based on how the Firefox implementation works.

For the ISO calendar, I would expect, and I get the following results:

const lastDay2029 = Temporal.PlainDate.from('2029-12-31');
console.log(lastDay2029.weekOfYear) // 1
console.log(lastDay2029.yearOfWeek) // 2030

Using the polyfill, I get the same results as those above when using the gregory calendar, whereas in Firefox I get:

const lastDay2029 = Temporal.PlainDate.from('2029-12-31[u-ca=gregory]');
console.log(lastDay2029.weekOfYear) // 53
console.log(lastDay2029.yearOfWeek) // 2029
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

No branches or pull requests

1 participant