Fix zero datetime value