Skip to content

Commit

Permalink
Add temporary quick fix for showing correct time - pt. 2
Browse files Browse the repository at this point in the history
  • Loading branch information
bartwr committed Apr 3, 2024
1 parent f843888 commit 229fb14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ParkingFacilityBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const isOpen = (openingTime: Date, closingTime: Date, isNS: boolean = false): bo
};

const formatTime = (time: Date): string => {
const hours = time.getHours().toString().padStart(2, "0");
const hours = (time.getHours() - 1).toString().padStart(2, "0");//TODO
const minutes = time.getMinutes().toString().padStart(2, "0");
return `${hours}:${minutes}`;
};
Expand Down

0 comments on commit 229fb14

Please sign in to comment.