-
Notifications
You must be signed in to change notification settings - Fork 17
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
PlainDate.dayOfWeek not adhering to the standard #26
Comments
my current workarround:
|
I see what's going on here. The code is internally leveraging a zoned Date method (.getDay()) when it shouldn't be. This gives eradic results based on the current user's timezone. I'll get this fixed+released today. |
This is fixed in v0.2.1 Turns out I was incorrectly leveraging the timezone-sensitive |
@digaus and @wundersolutions-juanjo could you kindly check to see if things work in your timezone (even tho timezone should not matter) |
Yeah timezone should not matter but I can confirm, that it works now correctly with |
In the current 0.2.0 version of the polyfill, PlainDate.dayOfWeek is not returning the correct value for ISO 8601 calendars
From the current docs on PlainDate,
Testing that on a website using the https://cdn.jsdelivr.net/npm/[email protected]/global.min.js polyfill results on dates being one day off
The text was updated successfully, but these errors were encountered: