py-pgproto icon indicating copy to clipboard operation
py-pgproto copied to clipboard

timestamp_encode() raises an Exception when encoding timezone-aware datetimes

Open blesner opened this issue 3 months ago • 0 comments

When passing a timezone-aware datetime to timestamp_encode() an exception is raised when subtracting pg_epoch_datetime as is it timezone-naive. I believe that in this case pg_epoch_datetime_utc should be subtracted instead.

blesner avatar Sep 29 '25 10:09 blesner