diff --git a/components/NextDay.tsx b/components/NextDay.tsx index 4d99da4..3e9f55f 100644 --- a/components/NextDay.tsx +++ b/components/NextDay.tsx @@ -29,7 +29,7 @@ const month = [ const NextDay = ({ icon, date, weather, tempDay, tempNight }: NextDayType) => { const clarifyDate = (epoch: number) => { const date = new Date(epoch * 1000); - return month[date.getMonth()] + " " + date.getDay(); + return month[date.getMonth()] + " " + date.getDate(); }; return icon && date && weather && tempDay && tempNight ? ( diff --git a/components/Sunset.tsx b/components/Sunset.tsx index fe1d279..f9291c4 100644 --- a/components/Sunset.tsx +++ b/components/Sunset.tsx @@ -35,8 +35,6 @@ const Sunset = ({ sunrise, sunset }: SunsetType) => { sunset: formatAMPM(sunset), }); - console.log(sunrise, now, sunset); - let nowFixed = now - sunrise; let sunsetFixed = sunset - sunrise; const gw = (nowFixed * 233) / sunsetFixed; diff --git a/pages/index.tsx b/pages/index.tsx index a5c972d..9e5a0c4 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -44,7 +44,7 @@ const Home: NextPage = () => { <>

Next 5 days

- {weatherData.daily.slice(0, 5).map((day: any, idx: number) => ( + {weatherData.daily.slice(1, 6).map((day: any, idx: number) => (