Fix datetime field