Kaydet (Commit) ea754289 authored tarafından Alexander Gaevsky's avatar Alexander Gaevsky Kaydeden (comit) Tim Graham

Refs #24980 -- Fixed incorrect timezone handling in admin calendar widget.

üst 7b8d2dcd
......@@ -368,8 +368,8 @@
if (inp.value) {
var format = get_format('DATE_INPUT_FORMATS')[0];
var selected = inp.value.strptime(format);
var year = selected.getFullYear();
var month = selected.getMonth() + 1;
var year = selected.getUTCFullYear();
var month = selected.getUTCMonth() + 1;
var re = /\d{4}/;
if (re.test(year.toString()) && month >= 1 && month <= 12) {
DateTimeShortcuts.calendars[num].drawDate(month, year, selected);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment