Skip to content

Commit

Permalink
exlude time from default date widget format
Browse files Browse the repository at this point in the history
  • Loading branch information
erquhart committed Mar 2, 2018
1 parent 5b5e035 commit ae61409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/EditorWidgets/Date/DateControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default class DateControl extends React.Component {

render() {
const { includeTime, value, classNameWrapper, setActiveStyle, setInactiveStyle } = this.props;
const format = this.format || moment.defaultFormat;
const format = this.format || (includeTime ? moment.defaultFormat : moment.HTML5_FMT.DATE);
return (
<DateTime
timeFormat={!!includeTime}
Expand Down

0 comments on commit ae61409

Please sign in to comment.