2
我是Symfony中的新手,所以请原谅我的无知。 我尝试使用Sonata Admin和'sonata_type_datetime_picker'字段类型来编辑某些事件的日期和时间。 但sonata_type_datetime_picker返回错误的时间。它减少了一个小时的时间。索纳塔管理日期时间选择器返回错误时间
Here's a filled form field screenshot (time is 10:00):
Here's dump of form field value (time is 09:00):
这里的窗体域选项:
->add('datebegin', 'sonata_type_datetime_picker', array(
'format' => 'dd.MM.yyyy HH:mm',
'label' => 'Event begins at...',
'dp_use_current' => false,
'model_timezone' => 'Europe/Moscow'
))
我想指出,只有在服务器上存在此错误。在我的本地机器上一切正常。 它可能是什么?
非常感谢!