This repository has been archived by the owner on Jan 10, 2020. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm opening this PR for reference for poor souls who still have YUI2 apps.
You might be likely interested in it if you have Windows-based customers (using Firefox) in Russia.
This commit fixes a bug manifesting itself in Calendar widget
due to recent permanent timezone changes in Russia
5.1.7 for Windows
http://blogs.technet.com/b/dst2007/archive/2014/08/22/announcement-update-for-russian-time-zone-changes.aspx
Then, click ">" to move to next month.
You expected to see January 2015 but December 2015 was displayed instead.
Under the hood, the problem is that the following JS:
evaluates to
2013
in Firefox in the mentioned locale(the exact date is Tue Dec 31 2013 23:00:00 GMT+0300)
It evaluates to
2014
in Chrome 38 and IE9.In the YUI2 Calendar code, the dates are initialized with "12:00:00" hour
to avoid DST-related problems, but the
findMonthStart
method wasreturning a date with "00:00:00" time, this was propagated and hence
from certain point of calendar lifetime, all the dates had hour reset
to "00:00:00".
The fix changes the dates returned by
findMonthStart
to be also middayinstead of midnight which solves the Russian timezone change-related
problems and perhaps some other similar types of problems.