Page MenuHomePhabricator

Fix start in fancy datepicker calendar
ClosedPublic

Authored by 0 on Nov 5 2015, 7:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 6, 1:17 AM
Unknown Object (File)
Thu, Apr 4, 1:52 PM
Unknown Object (File)
Thu, Mar 28, 6:42 PM
Unknown Object (File)
Mar 14 2024, 10:07 AM
Unknown Object (File)
Mar 9 2024, 8:07 AM
Unknown Object (File)
Mar 7 2024, 4:52 PM
Unknown Object (File)
Mar 5 2024, 7:00 PM
Unknown Object (File)
Mar 5 2024, 2:36 AM
Subscribers

Details

Summary

Fixes T9675.
Fixes the calculation for the difference between the first day of the month and the first day of the week. It was previously possible for this to be negative, which caused the subsequent loop to hang the browser.

Test Plan
  • Set week to start on Sunday. Observed that the calendar still renders fine.
  • Set week to start on Monday. Observed that the browser no longer hangs on November 2015.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

0 retitled this revision from to Fix start in fancy datepicker calendar.
0 updated this object.
0 edited the test plan for this revision. (Show Details)
0 added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Nov 5 2015, 3:07 PM
This revision was automatically updated to reflect the committed changes.