fix a bug: time interval is across one day