Skip to content

Conversation

@oldpatricka
Copy link
Contributor

I am seeing the following error in an app that uses cosmologger, this change cleans it up:

/usr/local/lib/python3.12/dist-packages/cosmolog/cosmologger.py:159: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
  t = datetime.utcfromtimestamp(t)

I am seeing the following error in an app that uses cosmologger, this
change cleans it up:

    /usr/local/lib/python3.12/dist-packages/cosmolog/cosmologger.py:159: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
      t = datetime.utcfromtimestamp(t)
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