fixed silly datetime coding error