Skip to content
New issue

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

Interim fix for calendar bug pending upstream merge #50

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion js/plugins/jquery.datePicker-patched-for-i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,13 @@
s.renderCallback(d, currentDate, month, year);
}
r.append(d);
currentDate.addDays(1);
/* Fix found in http://2008.kelvinluck.com/assets/jquery/datePicker/v2/demo/scripts/jquery.datePicker.js
* and file copied to ./plugins/jquery.datePicker.original.js
*/
// addDays(1) fails in some locales due to daylight savings. See issue 39.
//currentDate.addDays(1);
// set the time to midday to avoid any weird timezone issues??
currentDate = new Date(currentDate.getFullYear(), currentDate.getMonth(), currentDate.getDate()+1, 12, 0, 0);
}
tbody.append(r);
}
Expand Down