mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
cb4987f858
The YUI2 calendar widget (still used via 2in3) uses midnight as the time component of its Date objects, which triggers a Safari bug resulting in 11pm Saturday being returned instead of midnight Sunday when subtracting days to get the last few days of the previous month. This shows up ONLY on the month after DST begins, if DST begins on the last Sunday of a given month (and the Calendar widget is set to Sunday as the first day of the week). The fix/workaround of using noon instead of midnight is employed by YUI3 and others.