summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-08-03 20:21:29 +0200
committerErich Eckner <git@eckner.net>2022-08-03 20:21:29 +0200
commit277f54106bf098235e0a3ce709b3adc7a1130276 (patch)
tree563f3f2feef221533f7009fbd514845e17f80b57
parent9f76db63dd8abbe478b3539719475d467e2a5bb6 (diff)
downloadcolocation-277f54106bf098235e0a3ce709b3adc7a1130276.tar.xz
give time in localtimeHEADmaster
-rw-r--r--html/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/html/index.php b/html/index.php
index df6d4dc..3bfca3d 100644
--- a/html/index.php
+++ b/html/index.php
@@ -12,7 +12,7 @@ $result = $db -> query(
);
$stm = $db -> prepare(
- 'SELECT machines.name as machine, machines.last_update, states.name as state, "values".value' .
+ 'SELECT machines.name as machine, datetime(machines.last_update, "localtime") AS last_update, states.name as state, "values".value' .
' FROM machines' .
' JOIN "values" ON "values".machine_id = machines.id' .
' JOIN states ON "values".state_id = states.id' .