Fix a firefox issue on date