Hi admin.
I have a question. In a block i have a field with date format. I choose the date that i want and save the data. After that, the date appear with the format 31/12/1969, not the date that i pick before.
What is the solution for this?
This happen in blocks's layouts.
Comments
Can you share what you have for the block configuration?
I select a date, for example: 25/10/2018
And i save the page. After save, the date looks like this: 31/12/1969.
I don't know why this happen. The issue is for all the forms's blocks of all layouts with type "date".
I hope you understand admin, thanks.
I think it has to do with the date format that is being used is d/m/Y instead of m/d/Y (U.S.). Did you modify the format of the datepicker? If so, the strtotime function doesn't recognize that format and is probably causing the error.
http://php.net/manual/en/datetime.formats.date.php