We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c733b7f commit 70977ecCopy full SHA for 70977ec
src/views/order/_form.php
@@ -59,9 +59,7 @@
59
<?= $form->field($model, 'time')->widget(DateTimePicker::class, [
60
'clientOptions' => [
61
'todayBtn' => true,
62
- ],
63
- 'options' => [
64
- 'value' => Yii::$app->formatter->asDatetime(new DateTime(), 'php:Y-m-d H:i'),
+ 'format' => 'yyyy-mm-dd hh:ii', // @see https://github.com/sabinus52/bootstrap-datetimepicker?tab=readme-ov-file
65
],
66
]) ?>
67
</div>
0 commit comments