fix date parse error on safari browser.