Datetime field bug fixed