Add time zone information at the bottom
This commit is contained in:
parent
1e4f32ade6
commit
a20fa62ace
1 changed files with 4 additions and 1 deletions
|
@ -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>';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue