fix error validate datetime edit issue