Skip to content

Commit

Permalink
Fix for Date Format
Browse files Browse the repository at this point in the history
  • Loading branch information
purplespider committed Jan 4, 2016
1 parent 8e7c404 commit 9765284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/NewsArticle.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function getCMSFields()
$datefield = new DateField('Date', 'Date (DD/MM/YYYY)');
$datefield->setConfig('showcalendar', true);
$datefield->setConfig('showdropdown', true);
$datefield->setConfig('dateformat', 'dd/MM/YYYY');
$datefield->setConfig('dateformat', 'dd/MM/yyyy');

$fields->addFieldToTab('Root.Main', $datefield, 'Content');

Expand Down

0 comments on commit 9765284

Please sign in to comment.