mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.8.x] Fixed #24980 -- Fixed day determination in admin calendar widget.
Backport of 44930cc4667268c20493d7e97387db2a97d61a26 from master
This commit is contained in:
parent
61437dd0a0
commit
40601e5797
@ -225,7 +225,10 @@ String.prototype.strptime = function(format) {
|
|||||||
}
|
}
|
||||||
++i;
|
++i;
|
||||||
};
|
};
|
||||||
return new Date(year, month, day);
|
// Create Date object from UTC since the parsed value is supposed to be in
|
||||||
|
// UTC, not local time. Also, the calendar uses UTC functions for date
|
||||||
|
// extraction.
|
||||||
|
return new Date(Date.UTC(year, month, day));
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@ -14,3 +14,7 @@ Bugfixes
|
|||||||
|
|
||||||
* Fixed a crash in the translations system when the current language has no
|
* Fixed a crash in the translations system when the current language has no
|
||||||
translations (:ticket:`26046`).
|
translations (:ticket:`26046`).
|
||||||
|
|
||||||
|
* Fixed a regression that caused the incorrect day to be selected when opening
|
||||||
|
the admin calendar widget for timezones from GMT+0100 to GMT+1200
|
||||||
|
(:ticket:`24980`).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user