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);
$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