fix bug about date