fix bug for Date format in firefox