Activate DateFormat.INTL
This commit is contained in:
parent
12e8e39023
commit
66d51df1d7
2 changed files with 3 additions and 2 deletions
|
@ -425,7 +425,8 @@ export default class CUD extends Component {
|
|||
<Dropdown id="dateFormat" label={t('dateFormat')}
|
||||
options={[
|
||||
{key: DateFormat.US, label: t('mmddyyyy')},
|
||||
{key: DateFormat.EU, label: t('ddmmyyyy')}
|
||||
{key: DateFormat.EU, label: t('ddmmyyyy')},
|
||||
{key: DateFormat.INTL, label: t('YYYY-MM-DD')}
|
||||
]}
|
||||
/>
|
||||
<InputField id="default_value" label={t('defaultValue')} help={<Trans i18nKey="defaultValueUsedWhenTheFieldIsEmpty">Default value used when the field is empty.</Trans>}/>
|
||||
|
|
|
@ -234,7 +234,7 @@ fieldTypes.option = {
|
|||
|
||||
fieldTypes['date'] = {
|
||||
validate: field => {
|
||||
enforce(['eur', 'us'].includes(field.settings.dateFormat), 'Date format incorrect');
|
||||
enforce(['eur', 'us', 'intl'].includes(field.settings.dateFormat), 'Date format incorrect');
|
||||
},
|
||||
addColumn: (table, name) => table.dateTime(name),
|
||||
indexed: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue