fix time parsing in Safari