Fix date and time for calendar events as well as re-define CUR_DATETIME