localtime instead of gmtime

Signed-off-by: Mariano Alvira <mar@devl.org>
This commit is contained in:
Mariano Alvira 2009-06-22 17:06:17 -04:00
parent 400ea36fce
commit 5830ea153e

View file

@ -50,7 +50,7 @@ foreach my $file (@files) {
my $lastupdate = qx(rrdtool lastupdate $meshpath/$addr.rrd); my $lastupdate = qx(rrdtool lastupdate $meshpath/$addr.rrd);
$lastupdate =~ /([\w\d]+)\s+(\d+):\s+([\w\d]+)/; $lastupdate =~ /([\w\d]+)\s+(\d+):\s+([\w\d]+)/;
print gmtime($2) . " $1 $3<br>"; print localtime($2) . " $1 $3<br>";
foreach my $ds (keys(%dses)) { foreach my $ds (keys(%dses)) {
print h2("$ds: $aliases{$addr}{'ds'}{$ds}"); print h2("$ds: $aliases{$addr}{'ds'}{$ds}");