fix date converting issues with timezones