Fixing date issue for Safari