fixes error when duration of appointment is 0 minutes. Also added option to always display 24 hours in