Skip to content

fix(chore): DeprecationWarning stdlib#268

Merged
utnapischtim merged 3 commits intoinveniosoftware:masterfrom
utnapischtim:fix-utcnow-with-custom-type
Jan 28, 2026
Merged

fix(chore): DeprecationWarning stdlib#268
utnapischtim merged 3 commits intoinveniosoftware:masterfrom
utnapischtim:fix-utcnow-with-custom-type

Conversation

@utnapischtim
Copy link
Contributor

  • datetime.datetime.utcnow() is deprecated and scheduled for removal in
    a future version. Use timezone-aware objects to represent datetimes in
    UTC: datetime.datetime.now(datetime.UTC).

  • the decision was made to move to utc aware timestamps

@utnapischtim utnapischtim force-pushed the fix-utcnow-with-custom-type branch from 8a1cbc7 to 90ab3fd Compare November 2, 2025 21:01
@utnapischtim utnapischtim marked this pull request as ready for review January 13, 2026 13:41
@utnapischtim utnapischtim force-pushed the fix-utcnow-with-custom-type branch from 90ab3fd to d47ca12 Compare January 13, 2026 13:42
* datetime.datetime.utcnow() is deprecated and scheduled for removal in
  a future version. Use timezone-aware objects to represent datetimes in
  UTC: datetime.datetime.now(datetime.UTC).

* the decision was made to move to utc aware timestamps

* since the filters from flask-admin can not handle utc aware datetimes,
  a new handler has been added to invenio-admin filter converter
@utnapischtim utnapischtim force-pushed the fix-utcnow-with-custom-type branch from d47ca12 to 6b2fd62 Compare January 20, 2026 22:18
@utnapischtim utnapischtim merged commit 543d1a9 into inveniosoftware:master Jan 28, 2026
3 checks passed
@utnapischtim utnapischtim deleted the fix-utcnow-with-custom-type branch January 28, 2026 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant