Skip to content

fix: avoid deprecated UTC datetime helpers#399

Draft
Mirochill wants to merge 1 commit into
opensafely-core:mainfrom
Mirochill:fix-234-datetime-deprecations
Draft

fix: avoid deprecated UTC datetime helpers#399
Mirochill wants to merge 1 commit into
opensafely-core:mainfrom
Mirochill:fix-234-datetime-deprecations

Conversation

@Mirochill
Copy link
Copy Markdown

Summary

  • replace first-party utcnow() and utcfromtimestamp() calls with timezone-aware UTC equivalents
  • keep existing naive UTC string output where callers currently append Z
  • update related tests to avoid deprecated datetime helpers

Fixes #234.

Validation

  • Not run locally
  • rg -n utcnow|utcfromtimestamp opensafely tests --glob !opensafely/_vendor/**
  • git diff --check
  • git diff --cached --check

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.

Fix deprecation warnings

1 participant