Answer the question
In order to leave comments, you need to log in
How to change PostgreSQL date format on save?
There is a date widget in which the date format is dmY H:i. No special format conversions are performed when the model is saved.
Locally, dates are saved correctly, i.e. in the date table in Ymd H:i:s format. But on the remote server an error occurs:
SQLSTATE[22008]: Datetime field overflow: 7 ERROR: date/time field value out of range: "10/21/2018 5:30 PM"
Answer the question
In order to leave comments, you need to log in
In general, it was necessary to change the datestyle in the Postgres config and the rules flew
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question