Add time zone information at the bottom

This commit is contained in:
Klaus-Uwe Mitterer 2016-10-23 18:38:06 +02:00
parent 1e4f32ade6
commit a20fa62ace

View file

@ -15,7 +15,7 @@ if ($conn->connect_error) {
$sql = "SELECT ts, lat, lon FROM tracker WHERE device='" . mysqli_real_escape_string($conn, $_GET["device"]) . "' ORDER BY ts DESC LIMIT 1;";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
if ($result->num_rows != 0) {
while($row = $result->fetch_assoc()) {
print '<!DOCTYPE html>
@ -40,6 +40,9 @@ if ($result->num_rows > 0) {
L.tileLayer("https://b.tile.openstreetmap.org/{z}/{x}/{y}.png").addTo(mymap);
var marker = L.marker([' . $row["lat"] . ", " . $row["lon"] . ']).addTo(mymap);
</script>
<p>All times in UTC' . date('P') . '.</p>
</body>
</html>';
}