diff options
author | Frankie B <floppydisk05@aol.com> | 2023-04-01 18:04:09 +0000 |
---|---|---|
committer | Frankie B <floppydisk05@aol.com> | 2023-04-01 18:04:09 +0000 |
commit | a1275c72712299cbbc09a2e46df55de1fba7f7fa (patch) | |
tree | ca59a24788b3517020901273bc7e22783b0d2e6a | |
parent | 216adcfc9855fac1f86b09bed1181cd6b1f47452 (diff) |
Fix weatherdata date
-rw-r--r-- | inc/weatherdata.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/weatherdata.inc.php b/inc/weatherdata.inc.php index a589ba5..cfc6a49 100644 --- a/inc/weatherdata.inc.php +++ b/inc/weatherdata.inc.php @@ -39,7 +39,7 @@ if ($err) { } $current_response = json_decode($current_response, true); $weather_data = $current_response['data']['conditions'][0]; -echo '<h1>Local Weather <small>(Last Update: '.rtrim($last_update).')</small></h1>'; +echo '<h1>Local Weather <small>(Last Update: '.gmdate('H:i Y-m-d', intval(rtrim($last_update))).')</small></h1>'; $windDirDeg = $weather_data['wind_dir_last']; $windDir = ""; // W I N D |