Skip to content

Commit 70977ec

Browse files
authored
HP-2313 (#183)
1 parent c733b7f commit 70977ec

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/views/order/_form.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@
5959
<?= $form->field($model, 'time')->widget(DateTimePicker::class, [
6060
'clientOptions' => [
6161
'todayBtn' => true,
62-
],
63-
'options' => [
64-
'value' => Yii::$app->formatter->asDatetime(new DateTime(), 'php:Y-m-d H:i'),
62+
'format' => 'yyyy-mm-dd hh:ii', // @see https://github.com/sabinus52/bootstrap-datetimepicker?tab=readme-ov-file
6563
],
6664
]) ?>
6765
</div>

0 commit comments

Comments
 (0)