fix a small date format bug