Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2014-10-21 20:54:44 +0400
committerMadhura Jayaratne <madhura.cj@gmail.com>2014-10-21 20:54:44 +0400
commit1e21d7b0dad85dac0e1ca8c6852510e2d178e2dc (patch)
treefa583f823136052297045735361ead72c082e54c /js/tbl_chart.js
parente28912d49e50071cba9632047ed3704f57d4c652 (diff)
bug #4568 Date displayed incorrectly when charting a timeline
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/tbl_chart.js')
-rw-r--r--js/tbl_chart.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tbl_chart.js b/js/tbl_chart.js
index d945df6f39..95bdc768a0 100644
--- a/js/tbl_chart.js
+++ b/js/tbl_chart.js
@@ -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;