Thanks to visit codestin.com
Credit goes to github.com

Skip to content

can't compare offset-naive and offset-aware datetimes #3912

@jacaru

Description

@jacaru

After #3758, I am getting this error a lot:

can't compare offset-naive and offset-aware datetimes

What I am doing is comparing custom entry fields (set with the set plugin from the config template itself) containing string formatted naive dates coming from various sources, including utcnow, which was then changed to be offset aware. I use parsedate before comparing. Shouldn't parsedate be using pendulum as well in some way to generate dates that can be compared with naive dates?

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