diff --git a/components/datepicker/index.jsx b/components/datepicker/index.jsx index 4f5417371b..fd6c01b196 100644 --- a/components/datepicker/index.jsx +++ b/components/datepicker/index.jsx @@ -21,11 +21,10 @@ defaultCalendarValue.setTime(Date.now()); export default React.createClass({ getInitialState: function () { - var value = new GregorianCalendar(zhCn); + var value; if (this.props.value) { + value = new GregorianCalendar(zhCn); value.setTime(new Date(this.props.value).valueOf()); - } else { - value.setTime(Date.now()); } return { value: value