Use o to_timestamp() função postgres : `insert into times (time) values (to_timestamp(${Date.now()} / 1000.0))`