Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.x native datetime #12934

Merged
merged 13 commits into from
Feb 12, 2019
Prev Previous commit
Next Next commit
Include seconds for time input value.
  • Loading branch information
ADmad committed Feb 3, 2019
commit ddebf2c9ff708f5d66fc485942e7e1bbf39a6880
2 changes: 1 addition & 1 deletion src/View/Widget/DateTimeWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class DateTimeWidget implements WidgetInterface
protected $formatMap = [
'datetime-local' => 'Y-m-d\TH:i',
'date' => 'Y-m-d',
'time' => 'H:i',
'time' => 'H:i:s',
'month' => 'Y-m',
'week' => 'Y-\WW',
];
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/View/Helper/FormHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6054,7 +6054,7 @@ public function testTime()
'input' => [
'type' => 'time',
'name' => 'start_time',
'value' => '16:30',
'value' => '16:30:00',
],
];
$this->assertHtml($expected, $result);
Expand Down