Skip to content

Commit

Permalink
Allow specifying custom locale.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Nov 7, 2016
1 parent 6e37666 commit 91aa335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Widget/DateTimeWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function render(array $data, ContextInterface $context)
$disabled = isset($data['disabled']) && $data['disabled'] ? 'disabled' : '';
$role = isset($data['role']) ? $data['role'] : 'datetime-picker';
$format = null;
$locale = I18n::locale();
$locale = isset($data['locale']) ? $data['locale'] : I18n::locale();

$timezoneAware = Configure::read('CrudView.timezoneAwareDateTimeWidget');

Expand Down

0 comments on commit 91aa335

Please sign in to comment.