fix a date bug in statistic command