Page MenuHomePhabricator

D14409.id34814.diff
No OneTemporary

D14409.id34814.diff

diff --git a/webroot/rsrc/js/core/behavior-fancy-datepicker.js b/webroot/rsrc/js/core/behavior-fancy-datepicker.js
--- a/webroot/rsrc/js/core/behavior-fancy-datepicker.js
+++ b/webroot/rsrc/js/core/behavior-fancy-datepicker.js
@@ -300,10 +300,10 @@
// Render the calendar itself. NOTE: Javascript uses 0-based month indexes
// while we use 1-based month indexes, so we have to adjust for that.
var days = [];
- var start = new Date(
+ var start = (new Date(
valid_date.getYear() + 1900,
valid_date.getMonth(),
- 1).getDay() - week_start;
+ 1).getDay() - week_start + 7) % 7;
while (start--) {
days.push(cell('', null, false, 'day-placeholder'));

File Metadata

Mime Type
text/plain
Expires
Wed, Jul 30, 8:35 AM (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8731429
Default Alt Text
D14409.id34814.diff (706 B)

Event Timeline