NiclO1337 / pp4-banana-palace

A website for a restaurant specializing in delicious recipes using bananas. Fourth portfolio project with Code Institute.
0 stars 1 forks source link

[BUG] Timezone issue #57

Open NiclO1337 opened 3 months ago

NiclO1337 commented 3 months ago

Describe the bug Current date and time is not based on timezone where user is located, it is on GMT+1. When making a reservation after midnight, the user can still make a reservation on previous day.

To Reproduce Steps to reproduce the behavior:

  1. Be in a timezone before GMT+1
  2. Wait until after midnight
  3. Make a reservation on previous day
  4. See that the reservation was confirmed without issues

Expected behavior Checking date should always be based on users timezone and it should not be possible to make reservations on dates that have passed.