Corrected the date-time conversion