Open
Description
Currently new Date(undefined)
(an invalid date) is serialized as "0NaN-NaN-NaNTNaN:NaN:NaN.NaN+NaN:NaN"
which is not parsed by Postgres in any meaningful way.
We can either fail early by throwing a JS error, or produce a Postgres value that more obviously indicates an invalid date (e.g. "Invalid date").