|
|
@ -21,11 +21,10 @@ defaultCalendarValue.setTime(Date.now());
|
|
|
|
|
|
|
|
|
|
|
|
export default React.createClass({
|
|
|
|
export default React.createClass({
|
|
|
|
getInitialState: function () {
|
|
|
|
getInitialState: function () {
|
|
|
|
var value = new GregorianCalendar(zhCn);
|
|
|
|
var value;
|
|
|
|
if (this.props.value) {
|
|
|
|
if (this.props.value) {
|
|
|
|
|
|
|
|
value = new GregorianCalendar(zhCn);
|
|
|
|
value.setTime(new Date(this.props.value).valueOf());
|
|
|
|
value.setTime(new Date(this.props.value).valueOf());
|
|
|
|
} else {
|
|
|
|
|
|
|
|
value.setTime(Date.now());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
value: value
|
|
|
|
value: value
|
|
|
|