Fixed an issue with dates in Safari and IE