Skip to content

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

@blesner

Description

@blesner

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions