• Resolved theshae

    (@theshae)


    Is there a work around or a way to change the way the booking hours work? Lets say the restaurant is open to 3:00am so I would need to accept reservations from 12pm to 3am. Technically if a booking is made for 1am, it is the next day. However for the restaurant staff would count that as the same day and would want to see the reservation as the current day. Follow what I’m saying? It’s almost like the time would need to be separate from the date.

    https://ww.wp.xz.cn/plugins/restaurant-reservations/

Viewing 1 replies (of 1 total)
  • Hi theshae,

    Unfortunately, the short answer is no.

    This is a common problem when working with dates. Computers just doesn’t understand that concept so there’s no easy way to manage the discrepancy. Aside from the technical challenges, it’s not always clear what the user intended. If you receive a booking from a user on March 10 at 1am, what did the user intend? Did they choose the date that is technically correct or the date that sounds right to them?

    I don’t have an easy solution for you at this time. If you’re comfortable writing code, you could probably create a workaround by filtering the date when it is displayed in the template tags and the bookings table. But this still wouldn’t solve the problem of interpreting what the user intended.

    You might be able to counteract this by checking for early-morning bookings when the user submits the booking and prompting them to confirm with more human-readable language, like “You are booking for 1am on Tuesday night. Is that correct?”. This would also require some coding. It’s not pretty, though.

Viewing 1 replies (of 1 total)

The topic ‘Restaurant hours’ is closed to new replies.