How to fix Invalid datetime format in PostgreSQL | DevErrors