fixed timept conversion bugs