Skip to content

dashboard: replace deprecated utcfromtimestamp#37

Draft
Mirochill wants to merge 1 commit into
MITHaystack:masterfrom
Mirochill:fix-26-utcfromtimestamp
Draft

dashboard: replace deprecated utcfromtimestamp#37
Mirochill wants to merge 1 commit into
MITHaystack:masterfrom
Mirochill:fix-26-utcfromtimestamp

Conversation

@Mirochill
Copy link
Copy Markdown

Summary

  • Replace the dashboard power-history datetime.utcfromtimestamp() call with datetime.fromtimestamp(..., tz=timezone.utc).
  • Keep the graph input as Python datetime values while avoiding the Python 3.12+ deprecated API.

Closes #26

Validation

  • rg -n utcfromtimestamp|fromtimestamp\(|timezone srt/dashboard/layouts/graphs.py
  • git diff --check
  • Not run locally: tests, linters, build.

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.

utcfromtimestamp deprecated

1 participant