fix date calculate error & remove redundant update operation.