fix datetimes