fix for incorrect date format for date time