Skip to content

Commit

Permalink
Fixed DatetimeField API usage
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Apr 3, 2017
1 parent 8826a70 commit 7982a85
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions code/TestSessionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,6 @@ protected function getBaseFields()
new HiddenField('flush', null, 1)
);
$textfield->setAttribute('placeholder', 'Example: framework/tests/security/MemberTest.yml');
$datetimeField->getDateField()
->setConfig('dateformat', 'yyyy-MM-dd')
->setConfig('showcalendar', true)
->setAttribute('placeholder', 'Date (yyyy-MM-dd)');
$datetimeField->getTimeField()
->setConfig('timeformat', 'HH:mm:ss')
->setAttribute('placeholder', 'Time (HH:mm:ss)');
$datetimeField->setValue((isset($testState->datetime) ? $testState->datetime : null));

$this->extend('updateBaseFields', $fields);
Expand Down

0 comments on commit 7982a85

Please sign in to comment.