fix: js date parser for ie and safari