www-thermferm/liveview.php

changeset 385
260e92f0f998
parent 384
5db8186fe803
child 387
03635517595c
--- a/www-thermferm/liveview.php	Tue Jul 21 21:20:57 2015 +0200
+++ b/www-thermferm/liveview.php	Sun Aug 02 14:17:10 2015 +0200
@@ -144,12 +144,12 @@
 	$outstr .= '             dataField: \'Date\','.PHP_EOL;
 	$outstr .= '             type: \'date\','.PHP_EOL;
 	$outstr .= '             formatFunction: function (value) {'.PHP_EOL;
-	$outstr .= '                return value.getDate() + \'-\' + value.getMonth() + \'-\' + value.getFullYear()'.PHP_EOL;
+	$outstr .= '                return value.getDate() + \'-\' + (value.getMonth() + 1) + \'-\' + value.getFullYear()'.PHP_EOL;
 	$outstr .= '             },'.PHP_EOL;
 	$outstr .= '             toolTipFormatFunction: function (value) {'.PHP_EOL;
 	$outstr .= '                var h = value.getHours();'.PHP_EOL;
 	$outstr .= '                var m = value.getMinutes();'.PHP_EOL;
-	$outstr .= '                return value.getDate() + \'-\' + value.getMonth() + \'-\' + value.getFullYear()';
+	$outstr .= '                return value.getDate() + \'-\' + (value.getMonth() + 1) + \'-\' + value.getFullYear()';
 	$outstr .= ' + \' \' + (h < 10 ? \'0\' + h : h) + \':\' + (m < 10 ? \'0\' + m : m);'.PHP_EOL;
 	$outstr .= '             },'.PHP_EOL;
 	$outstr .= '             textRotationAngle: 45,'.PHP_EOL;

mercurial