The table users was badly designed.
The created_at and updated_at records were set with the VARCHAR type and the values were placed in them for a long time in the format like 20.10.2017 8:10.
It is necessary to convert fields to the DATETIME type in MySQL, saving the values entered earlier.
The STR_TO_DATETIME function is not suitable because it changes the output format, but not the VARCHAR data type itself to DATETIME data type in the table.
ALTER TABLE users MODIFY created_at DATETIME
does not work
Error message:
SQL Error [1292] [22001]: Data truncation: Incorrect datetime value: '06.01.2020 8:10' for column 'created_at' at row 1