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:57:13 +0400
committerMadhura Jayaratne <madhura.cj@gmail.com>2014-10-21 20:57:13 +0400
commitc678cc5bb09d2477671ff33f71655f726abf1764 (patch)
tree3e0a1ee0d87673f5bd34a4d57524551b7281db5e /js/tbl_chart.js
parent35b228d534a6db8d3de266c9eb22ed7706378be5 (diff)
parent1e21d7b0dad85dac0e1ca8c6852510e2d178e2dc (diff)
Merge branch 'QA_4_2'
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 14dcd8c81b..9a56c1bc7d 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;