fixes issues related to timezone and date selection and the setting of today