Skip to content

Commit

Permalink
Add meridian in empty data case.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 26, 2014
1 parent b1c0b87 commit 910c823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/View/Input/DateTime.php
Expand Up @@ -175,7 +175,8 @@ protected function _deconstuctDate($value, $options) {
if (empty($value)) {
return [
'year' => '', 'month' => '', 'day' => '',
'hour' => '', 'minute' => '', 'second' => ''
'hour' => '', 'minute' => '', 'second' => '',
'meridian' => '',
];
}
if (is_string($value)) {
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase/View/Input/DateTimeTest.php
Expand Up @@ -33,7 +33,6 @@ public function setUp() {
parent::setUp();
$templates = [
'select' => '<select name="{{name}}"{{attrs}}>{{content}}</select>',
'selectMultiple' => '<select name="{{name}}[]" multiple="multiple"{{attrs}}>{{content}}</select>',
'option' => '<option value="{{value}}"{{attrs}}>{{text}}</option>',
'optgroup' => '<optgroup label="{{label}}"{{attrs}}>{{content}}</optgroup>',
'dateWidget' => '{{year}}{{month}}{{day}}{{hour}}{{minute}}{{second}}{{meridian}}'
Expand Down

0 comments on commit 910c823

Please sign in to comment.