Skip to content

Commit

Permalink
Date field format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
purplespider committed Jan 4, 2016
1 parent e1eceac commit 0b374fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/CalendarEntry.php
Expand Up @@ -39,7 +39,7 @@ public function getCMSFields()
$this->beforeUpdateCMSFields(function ($fields) {
$datefield = new DateField('Date', 'Date (DD/MM/YYYY)*');
$datefield->setConfig('showcalendar', true);
$datefield->setConfig('dateformat', 'dd/MM/YYYY');
$datefield->setConfig('dateformat', 'dd/MM/yyyy');

$imagefield = new UploadField('Image', 'Image');
$imagefield->allowedExtensions = array('jpg', 'gif', 'png');
Expand Down

0 comments on commit 0b374fa

Please sign in to comment.