sonata_type_date_picker somehow makes -1 day after saving entity

168 views Asked by At

Did someone experience this? I have date in datepicker.

https://monosnap.com/file/MfiUeANHvBjQjypTfW3jZqBbxKKCRU

After saving: https://monosnap.com/file/9nLR0yRYfccCVoGcRHkR1KST1zIUMJ

And everytime like this!

edit: Guys, somehow problem was related to php version. I had 7.0, now 7.1

The thing is... Default format for datepicker changed in php7.1 version and it was incorrect, so I changed option 'format' => 'dd.MM.yyyy' and now everything is fine, but! What does php version to do with this thing? How can it change default datepicker format? Can somebody explain this? Did anyone experience this type of problem?

0

There are 0 answers