Skip to content

[BUG] Deprecated datetime.utcnow() causes warnings on Python 3.12+ #444

@Arijit429

Description

@Arijit429

Problem

datetime.utcnow() is used in api/db/models.py and api/routes/templates.py.
This is deprecated in Python 3.12+ and produces warnings visible in pytest output:

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorCode refactoring, cleaning

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions