1.4.5 updated

This commit is contained in:
PranshulGG committed 2024-08-20 18:25:02 +05:30
1 parent ef64a87c02
commit bc25ea771e
1 file changed
+1 -4
+1 -4
View File
@@ -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');
}