Repository navigation
Conversation
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…ut=None with USE_TZ=True
The _base_set_expiry method in DatabaseCache returned datetime.max (a
timezone-naive value) when timeout=None, while the project runs with
USE_TZ=True.
This caused Django to emit a RuntimeWarning on every cache write that
passes timeout=None:
DateTimeField CacheEntry.expires received a naive datetime (...)
while time zone support is active.
joaocfernandes
force-pushed
the
jfernandes/naive-time-db-warning-main
branch
from
June 12, 2026 10:22
b465f79 to
50b8eac
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #23033 +/- ##
==========================================
- Coverage 93.26% 93.23% -0.04%
==========================================
Files 1032 1035 +3
Lines 60186 60364 +178
Branches 400 400
==========================================
+ Hits 56135 56281 +146
- Misses 4051 4083 +32
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
rissson
approved these changes
Jun 15, 2026
Signed-off-by: Jens Langhammer <[email protected]>
BeryJu
approved these changes
Jun 21, 2026
Contributor
|
|
Contributor
|
🍒 Cherry-pick to |
BeryJu
pushed a commit
that referenced
this pull request
Jun 21, 2026
This cherry-pick has conflicts that need manual resolution. Original PR: #23033 Original commit: 86e9798 Signed-off-by: Jens Langhammer <[email protected]>
BeryJu
added a commit
that referenced
this pull request
Jun 21, 2026
#23033 to version-2026.5) (#23235) packages/django-postgres-cache: fix naive datetime warning (#23033) * packages/django-postgres-cache: fix naive datetime warning when timeout=None with USE_TZ=True The _base_set_expiry method in DatabaseCache returned datetime.max (a timezone-naive value) when timeout=None, while the project runs with USE_TZ=True. This caused Django to emit a RuntimeWarning on every cache write that passes timeout=None: DateTimeField CacheEntry.expires received a naive datetime (...) while time zone support is active. * fix linting --------- Signed-off-by: Jens Langhammer <[email protected]> Co-authored-by: João C. Fernandes <[email protected]> Co-authored-by: Marc 'risson' Schmitt <[email protected]> Co-authored-by: Jens Langhammer <[email protected]>
BeryJu
added a commit
that referenced
this pull request
Jun 22, 2026
#23033 to version-2026.2) (#23234) * Cherry-pick #23033 to version-2026.2 (with conflicts) This cherry-pick has conflicts that need manual resolution. Original PR: #23033 Original commit: 86e9798 Signed-off-by: Jens Langhammer <[email protected]> * fix Signed-off-by: Jens Langhammer <[email protected]> --------- Signed-off-by: Jens Langhammer <[email protected]> Co-authored-by: João C. Fernandes <[email protected]> Co-authored-by: Jens Langhammer <[email protected]>
kensternberg-authentik
added a commit
that referenced
this pull request
Jun 22, 2026
* main: (30 commits) core, flows: drop maximum-scale=1 from viewport meta (#23261) web: bump vite from 8.0.12 to 8.0.16 in /web (#23129) web: bump the storybook group across 1 directory with 4 updates (#23246) ci: bump actions/checkout from 6.0.3 to 7.0.0 (#23250) core: bump structlog from 25.5.0 to 26.1.0 (#23241) packages/django-dramatiq-postgres/broker: fix race condition in broker causing completed tasks to be repeated (#23218) core, web: update translations (#23237) core: bump pytest from 9.0.3 to 9.1.0 (#23238) core: bump aws-cdk-lib from 2.258.1 to 2.259.0 (#23240) core: bump goauthentik/fips-python from `9b938f7` to `cbec346` in /lifecycle/container (#23242) core: bump ruff from 0.15.17 to 0.15.18 (#23243) ci: bump int128/docker-manifest-create-action from 2.22.0 to 2.23.0 (#23244) core: bump pytest-github-actions-annotate-failures from 0.4.0 to 0.4.1 (#23245) ci: bump softprops/action-gh-release from 3.0.0 to 3.0.1 (#23247) core: bump astral-sh/uv from 0.11.22 to 0.11.23 in /lifecycle/container (#23248) ci: bump taiki-e/install-action from 2.81.11 to 2.82.0 in /.github/actions/setup (#23252) web: bump date-fns from 4.1.0 to 4.4.0 in /web (#23253) core: bump which from 8.0.3 to 8.0.4 (#23254) translate: Updates for project authentik and language ar_AA (#23255) packages/django-postgres-cache: fix naive datetime warning (#23033) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The _base_set_expiry method in DatabaseCache returned datetime.max (a timezone-naive value) when timeout=None, while the project runs with USE_TZ=True.
This caused Django to emit a RuntimeWarning on every cache write that
passes timeout=None: