When encountering error 22007: Invalid datetime format from Postgres DB, follow these steps:
SHOW timezone; in psql to see the current timezone setting of your PostgreSQL server.TO_TIMESTAMP function to convert it. For example:SELECT TO_TIMESTAMP('2023-01-01 12:00:00', 'YYYY-MM-DD HH24:MI:SS');





