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 Feb 28, 2018
1 parent 5b5e035 commit 3bb1dc5
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 || moment[includeTime ? 'defaultFormat' : 'HTML5_FMT.DATE'];
return (
<DateTime
timeFormat={!!includeTime}
Expand Down

0 comments on commit 3bb1dc5

Please sign in to comment.