bug #4568 Date displayed incorrectly when charting a timeline
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
parent
e28912d49e
commit
1e21d7b0da
@ -6,6 +6,7 @@ phpMyAdmin - ChangeLog
|
||||
- bug #4552 Incorrect routines display for database due to case insensitive checks
|
||||
- bug #4259 reCaptcha sound session expired problem
|
||||
- bug #4557 PHP fatal error, undefined function __()
|
||||
- bug #4568 Date displayed incorrectly when charting a timeline
|
||||
|
||||
4.2.10.1 (2014-10-21)
|
||||
- bug #4562 [security] XSS in debug SQL output
|
||||
|
||||
@ -17,12 +17,12 @@ function extractDate(dateString) {
|
||||
matches = dateTimeRegExp.exec(dateString);
|
||||
if (matches !== null && matches.length > 0) {
|
||||
match = matches[0];
|
||||
return new Date(match.substr(0, 4), match.substr(5, 2), match.substr(8, 2), match.substr(11, 2), match.substr(14, 2), match.substr(17, 2));
|
||||
return new Date(match.substr(0, 4), parseInt(match.substr(5, 2), 10) - 1, match.substr(8, 2), match.substr(11, 2), match.substr(14, 2), match.substr(17, 2));
|
||||
} else {
|
||||
matches = dateRegExp.exec(dateString);
|
||||
if (matches !== null && matches.length > 0) {
|
||||
match = matches[0];
|
||||
return new Date(match.substr(0, 4), match.substr(5, 2), match.substr(8, 2));
|
||||
return new Date(match.substr(0, 4), parseInt(match.substr(5, 2), 10) - 1, match.substr(8, 2));
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user