Skip to content

Commit d28ff8c

Browse files
committed
Coerce includeTime to a boolean
1 parent e010acd commit d28ff8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Widgets/DateControl.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default class DateControl extends React.Component {
2828
const { field, includeTime, value } = this.props;
2929
const format = field.get('format', moment.defaultFormat);
3030
return (<DateTime
31-
timeFormat={includeTime}
31+
timeFormat={!!includeTime}
3232
value={moment(value, format)}
3333
onChange={this.handleChange}
3434
/>);

0 commit comments

Comments
 (0)