Použijte to_timestamp() postgres funkce : `insert into times (time) values (to_timestamp(${Date.now()} / 1000.0))`