diff --git a/pages/[user]/[type].tsx b/pages/[user]/[type].tsx index 7d3a0ce891..2b8c0b1dec 100644 --- a/pages/[user]/[type].tsx +++ b/pages/[user]/[type].tsx @@ -159,8 +159,8 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) => availability && availability.length ? availability.map((schedule) => ({ ...schedule, - startTime: schedule.startTime.getUTCHours() * 60 + schedule.startTime.getUTCMinutes(), - endTime: schedule.endTime.getUTCHours() * 60 + schedule.endTime.getUTCMinutes(), + startTime: schedule.startTime.getHours() * 60 + schedule.startTime.getMinutes(), + endTime: schedule.endTime.getHours() * 60 + schedule.endTime.getMinutes(), })) : null;