Skip to content

Fix deprecated UTC timestamp formatting#51

Draft
Mirochill wants to merge 1 commit into
chaostoolkit:masterfrom
Mirochill:fix-45-utcfromtimestamp
Draft

Fix deprecated UTC timestamp formatting#51
Mirochill wants to merge 1 commit into
chaostoolkit:masterfrom
Mirochill:fix-45-utcfromtimestamp

Conversation

@Mirochill
Copy link
Copy Markdown

Fixes #45.

Summary

  • Replace the deprecated datetime.utcfromtimestamp() call used for Prometheus chart labels with datetime.fromtimestamp(..., timezone.utc).
  • Add regression coverage for UTC label formatting.
  • Update the changelog entry for the fix.

Validation

  • git diff --check
  • git diff --cached --check
  • git diff --check HEAD~1..HEAD
  • Not run locally

Signed-off-by: Miro <200482516+Mirochill@users.noreply.github.com>
@Mirochill Mirochill force-pushed the fix-45-utcfromtimestamp branch from bab4003 to 85ee2c9 Compare May 23, 2026 21:03
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 is deprecated in Python 3.12

1 participant