Fixes date issue on safari'