update_at timestamp?! How To?

Hey guys, I have a column which have the type timestampz.
I try to fill the field like:
payload.updated_at = new Date()
//OR
payload.updated_at = new Date().toISOString()
//both is not working


Im getting the following error:
{
  code: '22007',
  details: null,
  hint: null,
  message: 'invalid input syntax for type timestamp with time zone: "6. September 2022, 17:21"'
}
Was this page helpful?