Skip to content

fix(chore): DeprecationWarning stdlib#313

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

fix(chore): DeprecationWarning stdlib#313
utnapischtim merged 7 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

* 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
* JSONSCHEMAS_HOST is set to localhost
* The 'missing' argument to fields is deprecated. Use 'load_default'
  instead.
* The 'record_to_index' function is no longer expected to return a
  tuple (index, doc_type), instead it should only return the index.
  Support for the tuple will be removed in a future version of
  'invenio-indexer'.
@utnapischtim utnapischtim marked this pull request as ready for review January 13, 2026 20:39
@utnapischtim utnapischtim force-pushed the fix-utcnow-with-custom-type branch from fb8cce8 to 401974d Compare January 20, 2026 22:22
@utnapischtim utnapischtim merged commit 8e8f87d into inveniosoftware:master Jan 30, 2026
5 of 9 checks passed
@utnapischtim utnapischtim deleted the fix-utcnow-with-custom-type branch January 30, 2026 21:28
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