Fixed issue with IE8 Date compatibility