Simon Egersand
2018-02-11 405f4e8754ef801d1837266940bf399c19da74e6
Parse updated viewDate with moment()

viewDate should always be parsed with moment, in both initial parse and
updated
1 files modified
2 ■■■ changed files
DateTime.js 2 ●●● patch | view | raw | blame | history
DateTime.js
@@ -193,7 +193,7 @@
        }
        if ( nextProps.viewDate !== this.props.viewDate ) {
            updatedState.viewDate = nextProps.viewDate;
            updatedState.viewDate = moment(nextProps.viewDate);
        }
        //we should only show a valid date if we are provided a isValidDate function. Removed in 2.10.3
        /*if (this.props.isValidDate) {