fix bugs:datetime compare bug