We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb80e0d commit 63533e5Copy full SHA for 63533e5
src/datepicker.jsx
@@ -116,7 +116,7 @@ export default class DatePicker extends React.Component {
116
this.props.openToDate ? moment(this.props.openToDate)
117
: this.props.selectsEnd && this.props.startDate ? moment(this.props.startDate)
118
: this.props.selectsStart && this.props.endDate ? moment(this.props.endDate)
119
- : this.props.utcOffset ? moment.utc().utcOffset(this.props.utcOffset)
+ : (typeof this.props.utcOffset !== 'undefined') ? moment.utc().utcOffset(this.props.utcOffset)
120
: moment()
121
const minDate = getEffectiveMinDate(this.props)
122
const maxDate = getEffectiveMaxDate(this.props)
0 commit comments