aws / pg_tle

Framework for building trusted language extensions for PostgreSQL
Apache License 2.0
337 stars 30 forks source link

Fix validuntil time in passcheck #235

Closed adamguo0 closed 1 year ago

adamguo0 commented 1 year ago

Issue #, if available: #230

Description of changes: Use TimestampTzGetDatum to convert the validuntil_time to a Datum with the correct value.

This fix was originally in #232 but I am splitting it into its own PR so that it doesn't get held up by the other changes in that PR.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

anth0nyleung commented 1 year ago

Code change LGTM. But did we found out why using timestamptz_out is returning the invalid value?