datetime fix pretest

about to debus this