Fix weatherdata date

This commit is contained in:
Frankie B 2023-04-01 18:04:09 +00:00
parent 216adcfc98
commit a1275c7271

View file

@ -39,7 +39,7 @@
} }
$current_response = json_decode($current_response, true); $current_response = json_decode($current_response, true);
$weather_data = $current_response['data']['conditions'][0]; $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']; $windDirDeg = $weather_data['wind_dir_last'];
$windDir = ""; $windDir = "";
// W I N D // W I N D