date format bug fixed