updated the way time and dates are written