mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
Use 12:00 as a reference point for simple dates instead of midnight. (#4025)
In locales where DST timezone changes occur on midnight (like Brazil) the calendar becomes confused which date to show. On DST ends, the date sprung back from 2010-10-17 00:00 to 2010-10-16 23:00 in Brazil. Thus, the date 2010-10-16 was shown two times. Using 12 as the default hour for dates does circumvent this issue. If DST changes occur around noon or the time picker functionality is used, this still breaks however.
This commit is contained in:
parent
4c60f05263
commit
aaede7f755
@ -1589,7 +1589,7 @@ Date.parseDate = function(str, fmt) {
|
||||
var a = str.split(/\W+/);
|
||||
var b = fmt.match(/%./g);
|
||||
var i = 0, j = 0;
|
||||
var hr = 0;
|
||||
var hr = 12;
|
||||
var min = 0;
|
||||
for (i = 0; i < a.length; ++i) {
|
||||
if (!a[i])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user