Specified date formatting

Sat, 30 Aug 2014 22:15:54 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 30 Aug 2014 22:15:54 +0200
changeset 271
e3f56dc46bcd
parent 270
df81d583c2c3
child 272
f436d826de4b

Specified date formatting

www-thermferm/liveview.php file | annotate | diff | comparison | revisions
--- a/www-thermferm/liveview.php	Sat Aug 30 13:06:07 2014 +0200
+++ b/www-thermferm/liveview.php	Sat Aug 30 22:15:54 2014 +0200
@@ -107,7 +107,7 @@
 	$outstr .= '       {'.PHP_EOL;
 	$outstr .= '          datatype: "json",'.PHP_EOL;
 	$outstr .= '          datafields: ['.PHP_EOL;
-	$outstr .= '             { name: "Date" },'.PHP_EOL;
+	$outstr .= '             { name: "Date", type: "date", format: "yyyy-MM-ddTHH:mm" },'.PHP_EOL;
 	$outstr .= '             { name: "Mode" },'.PHP_EOL;
 	$outstr .= '             { name: "Air", type: "float" },'.PHP_EOL;
 	$outstr .= '             { name: "Beer", type: "float" },'.PHP_EOL;

mercurial