How to save JS Date.now() in PostgreSQL?
Use the to_timestamp()
postgres function:
`insert into times (time) values (to_timestamp(${Date.now()} / 1000.0))`
Or you can do something similar to this:
const time = new Date().toISOString();
In your query builder:
...
.update()
.set({column_name: time})