Date Time Picker Minimum and Max Hour errors

So I wish to make my booking app and it would require users to book at least 3 hours ahead of the current time, 30 Minutes minimum and it would only be able to book a max of 3 hours once a time.

When I use the Minimum and Max Hours (For example 3 hours max, it would only allow you to book 2.75 hours)

But If you change it to 3.25 hours or 195 minutes, you may sometimes only be able to pick 2.75 hours or 165 minutes.

Some Timing works fine while some timing works odd and may have a time smaller or higher than the maximum amount of time allowed.

Edit: Some other broken date time hour

This topic was automatically closed after 14 days. New replies are no longer allowed.