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">=htmlspecialchars($ifname)?>
>=gettext("Switch to bytes/s"); ?>
>=gettext("AutoScale"); ?> (=$scale_type?>)
- >
+ >
+ >
>=gettext("Graph shows last"); ?> =$time_interval*$nb_plot?> =gettext("seconds"); ?>
points="=($width) . "," . ($height)?> =($width-2) . "," . ($height-2)?> =($width-2) . "," . $height?>"/>
text-anchor="middle">=$error_text?>
@@ -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