Skip to content

Avoid deprecated utcfromtimestamp in cache headers#45

Draft
Mirochill wants to merge 1 commit into
Trellmor:masterfrom
Mirochill:fix-43-cache-mtime-utc
Draft

Avoid deprecated utcfromtimestamp in cache headers#45
Mirochill wants to merge 1 commit into
Trellmor:masterfrom
Mirochill:fix-43-cache-mtime-utc

Conversation

@Mirochill
Copy link
Copy Markdown

Summary

  • Import timezone from datetime.
  • Build the cache If-modified-since datetime with datetime.fromtimestamp(..., tz=timezone.utc) instead of the deprecated datetime.utcfromtimestamp().

Closes #43

Validation

  • rg -n utcfromtimestamp|fromtimestamp|timezone update-zonefile.py
  • git diff --check
  • Not run locally: update-zonefile.py / network-fetch workflow.

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.

update-zonefile.py:70: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version

1 participant