From 78483d9034d63005c3748207a9162d06cd8b03d8 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 10 Feb 2015 15:57:26 +0000 Subject: [PATCH] specified the radix in a call to parseInt --- codepot/src/codepot/views/project_home.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/codepot/src/codepot/views/project_home.php b/codepot/src/codepot/views/project_home.php index ad3cf520..54616e6f 100644 --- a/codepot/src/codepot/views/project_home.php +++ b/codepot/src/codepot/views/project_home.php @@ -76,10 +76,10 @@ function show_commits_per_month_graph(response) var year, month, min_year, max_year, min_month, max_month; - min_year = parseInt(min_date.substring (0, 4)); - min_month = parseInt(min_date.substring (5)); - max_year = parseInt(max_date.substring (0, 4)); - max_month = parseInt(max_date.substring (5)); + min_year = parseInt(min_date.substring (0, 4), 10); + min_month = parseInt(min_date.substring (5), 10); + max_year = parseInt(max_date.substring (0, 4), 10); + max_month = parseInt(max_date.substring (5), 10); // fill empty data points for (year = min_year; year <= max_year; year++)