Skip to content

Commit

Permalink
Add fixme for date
Browse files Browse the repository at this point in the history
  • Loading branch information
tlenclos committed Jan 31, 2023
1 parent 070a8b6 commit 2dc4e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/fetchPlaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function dateInFrench(date: Date = defaultDateWithTimezone) {
}).format(date);
}

// Ex "11:30 to 22:00"
// FIXME if the second is past midnight it won't work properly since the second date is the same day (ie 19:00 to 02:00)
function isOpenInRange(range: string, date: Date = defaultDateWithTimezone): boolean {
const dateRange = range
.split(" to ")
Expand Down

1 comment on commit 2dc4e71

@vercel
Copy link

@vercel vercel bot commented on 2dc4e71 Jan 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

joli-mapstr – ./

joli-mapstr-tlenclos.vercel.app
joli-mapstr-git-master-tlenclos.vercel.app
joli-mapstr.vercel.app

Please sign in to comment.