Fix scatter custom date for firefox