We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I set the weeknumber of a UTC-mode xdate, it reverts to my current time zone.
let date = new XDate(true); date.setHours(0).setMinutes(0).setSeconds(0).setMilliseconds(0); console.log(date); // {0: Thu, 08 Feb 2018 00:00:00 GMT} date.setWeek(date.getWeek()); console.log(date); // Expected: {0: Mon, 05 Feb 2018 00:00:00 GMT} // Actual: {0: Sun, 04 Feb 2018 23:00:00 GMT}
Tested on Chrome.
Workaround: use setUTCWeek() instead
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I set the weeknumber of a UTC-mode xdate, it reverts to my current time zone.
Tested on Chrome.
Workaround: use setUTCWeek() instead
The text was updated successfully, but these errors were encountered: