fix timezone and date formatting issues