diff --git a/usr/local/www/graph.php b/usr/local/www/graph.php index 2c0dc94d10..7cfd34671c 100755 --- a/usr/local/www/graph.php +++ b/usr/local/www/graph.php @@ -116,7 +116,8 @@ print('' . "\n");?> text-anchor="end"> > > () - > + > + > > points=" "/> text-anchor="middle"> @@ -209,9 +210,10 @@ function fetch_data() { function plot_data(obj) { // Show datetimelegend var now = new Date(); - var datetime = (now.getMonth()+1) + "/" + now.getDate() + "/" + now.getFullYear() + ' ' + - LZ(now.getHours()) + ":" + LZ(now.getMinutes()) + ":" + LZ(now.getSeconds()); - SVGDoc.getElementById('datetime').firstChild.data = datetime; + var time = LZ(now.getHours()) + ":" + LZ(now.getMinutes()) + ":" + LZ(now.getSeconds()); + SVGDoc.getElementById('time').firstChild.data = time; + var date = (now.getMonth()+1) + "/" + now.getDate() + "/" + now.getFullYear(); + SVGDoc.getElementById('date').firstChild.data = date; if (!obj.success) return handle_error(); // getURL failed to get data