# HG changeset patch # User Michiel Broek # Date 1438517830 -7200 # Node ID 260e92f0f998babc80e9b9857bb12676f8c7a778 # Parent 5db8186fe803e9ea10981914d4d3b9a6a529a633 Fixed month display in live view and archive view. Bumped to version 0.3.7. diff -r 5db8186fe803 -r 260e92f0f998 configure --- a/configure Tue Jul 21 21:20:57 2015 +0200 +++ b/configure Sun Aug 02 14:17:10 2015 +0200 @@ -2034,7 +2034,7 @@ PACKAGE="mbsePi-apps" -VERSION="0.3.6" +VERSION="0.3.7" COPYRIGHT="Copyright (C) 2014-2015 Michiel Broek, All Rights Reserved" CYEARS="2014-2015" diff -r 5db8186fe803 -r 260e92f0f998 configure.ac --- a/configure.ac Tue Jul 21 21:20:57 2015 +0200 +++ b/configure.ac Sun Aug 02 14:17:10 2015 +0200 @@ -8,7 +8,7 @@ dnl General settings dnl After changeing the version number, run autoconf! PACKAGE="mbsePi-apps" -VERSION="0.3.6" +VERSION="0.3.7" COPYRIGHT="Copyright (C) 2014-2015 Michiel Broek, All Rights Reserved" CYEARS="2014-2015" AC_SUBST(PACKAGE) diff -r 5db8186fe803 -r 260e92f0f998 www-thermferm/archives.php --- a/www-thermferm/archives.php Tue Jul 21 21:20:57 2015 +0200 +++ b/www-thermferm/archives.php Sun Aug 02 14:17:10 2015 +0200 @@ -143,12 +143,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; diff -r 5db8186fe803 -r 260e92f0f998 www-thermferm/liveview.php --- 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;