fix firefox date parsing