diff --git a/pages/index.js b/pages/index.js index 22babf9..c0e1e8b 100644 --- a/pages/index.js +++ b/pages/index.js @@ -55,11 +55,7 @@ export default function Home() { return time; }; - // console.log( - // new Date(weatherData.dt * 1000).toISOString().match(/(\d{2}:\d{2}:\d{2})/) - // ); - - console.log(convertTime(weatherData.dt, weatherData.timezone)); + // console.log(convertTime(weatherData.dt, weatherData.timezone)); return (
@@ -83,11 +79,10 @@ export default function Home() {

Feels like {Math.round(weatherData.main.feels_like)}°

-

- {new Date( - weatherData.dt * 1000 + weatherData.timezone * 1000 - ).toLocaleString("en-US")} -

+

+ {convertTime(weatherData.dt, weatherData.timezone)[0].split(":")[0]} + :00 +

)}