same datetime fix as previous commit, but in printevent