fix date issue on safari