mirror of
https://github.com/PranshulGG/WeatherMaster.git
synced 2026-10-21 18:43:03 -05:00
1.4.5 updated
This commit is contained in:
1 parent
ef64a87c02
commit
bc25ea771e
1 file changed
+1
-4
@@ -1530,12 +1530,9 @@ function display24HourForecast(forecastData) {
|
||||
const timestamp = new Date(forecast.dt * 1000);
|
||||
let time;
|
||||
|
||||
if (i === 0) {
|
||||
time = "Now";
|
||||
} else {
|
||||
time = timestamp.toLocaleTimeString('en-US', { hour: 'numeric', hour12: true });
|
||||
time = time.replace('AM', ' AM').replace('PM', ' PM');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user