Fixed a bug that prevented dates from being saved in Internet Explorer