nova-opening-hours-field icon indicating copy to clipboard operation
nova-opening-hours-field copied to clipboard

Need support for hours into the next day

Open HeathNaylor opened this issue 2 years ago • 1 comments
trafficstars

Currently there is no support to say that a place, like a bar, is open until 2am. A simple solution for this would be to not bound the end time of the range to 23:59, instead allowing for things like 24:30, and for the 2am slot 26:00. We would prefer to do it this way so that we don't need to write logic in our application domain that looks for two contiguous time ranges (06:30 - 23:59 and 00:00 - 02:00) on the same day and combine those for display on the front end.

If this is something that would be merged in if we open a pull request then we would be willing to do the work required for this @sadekd.

HeathNaylor avatar Dec 07 '22 13:12 HeathNaylor

Try ->allowOverflowMidnight(true) 😉

sadekd avatar Dec 17 '22 12:12 sadekd