Skip to content

DTZ901 Instead of warning replace datetime.datetime.min.time() with datetime.time.min #14378

@spaceby

Description

@spaceby

datetime.datetime.min may cause a timezone bug, but datetime.datetime.min.time() does not cause timezone problems.

I propose to add an exception to DTZ901 for datetime.datetime.min.time() and datetime.datetime.max.time()
Or replace them with datetime.time.min and datetime.time.max

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpreviewRelated to preview mode features

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions