ZeusWPI / Haldis

Haldis is your friendly neighbourhood servant. He exists so lazy fucks like you and me don't need to keep tabs of who is ordering what from where.
Other
13 stars 15 forks source link

Picking a closing date far away in the future crashes haldis #173

Open rien opened 4 years ago

rien commented 4 years ago

This renders Haldis unusable, giving an internal server error.

To reproduce this bug: open an order which closes far away in the future (e.g. 9999-12-31).

The notification hints to the possible cause:

\<user> is going to \<restaurant>, order here! Deadline in 4196884978 minutes!

The minutes are very close to 1 << 32, indicating an integer overflow.