[Django] #36811: Admin timezone warning shows incorrect plural form and confusing message

0 views
Skip to first unread message

Django

unread,
Dec 18, 2025, 8:59:01 PM (8 hours ago) Dec 18
to django-...@googlegroups.com
#36811: Admin timezone warning shows incorrect plural form and confusing message
----------------------------+-----------------------------------------
Reporter: Koded0214h | Type: Uncategorized
Status: new | Component: Uncategorized
Version: 6.0 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+-----------------------------------------
The Django admin displays two issues with timezone offset warnings:

1. Incorrect plural: Shows "1 hours behind" instead of "1 hour behind"
2. Confusing message: "You are X hours behind server time" doesn't explain
that times are displayed correctly in the user's local timezone

Steps to reproduce:
1. Set TIME_ZONE = 'UTC' in settings.py
2. View admin with browser in UTC+1 timezone (e.g., Lagos)
3. Add/edit any model with DateTimeField
4. Observe warning message

Expected:
- "1 hour behind" (singular, not "1 hours")
- Clear indication of which timezone is being displayed

Actual:
- "Note: You are 1 hours behind server time."

Component: contrib.admin
Type: Bug
Version: main
--
Ticket URL: <https://code.djangoproject.com/ticket/36811>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 18, 2025, 9:01:37 PM (8 hours ago) Dec 18
to django-...@googlegroups.com
#36811: Admin timezone warning shows incorrect plural form and confusing message
-------------------------------+--------------------------------------
Reporter: Koded0214h | Owner: (none)
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 6.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Nilesh Pahari):

* cc: Nilesh Pahari (added)

--
Ticket URL: <https://code.djangoproject.com/ticket/36811#comment:1>

Django

unread,
Dec 18, 2025, 9:18:34 PM (8 hours ago) Dec 18
to django-...@googlegroups.com
#36811: Admin timezone warning shows incorrect plural form and confusing message
-----------------------------------+--------------------------------------
Reporter: Raufu Abdulrahman | Owner: (none)
Type: Uncategorized | Status: new
Component: contrib.admin | Version: 6.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by Nilesh Pahari):

* component: Uncategorized => contrib.admin

--
Ticket URL: <https://code.djangoproject.com/ticket/36811#comment:2>

Django

unread,
Dec 18, 2025, 9:29:36 PM (8 hours ago) Dec 18
to django-...@googlegroups.com
#36811: Admin timezone warning shows incorrect plural form and confusing message
-----------------------------------+--------------------------------------
Reporter: Raufu Abdulrahman | Owner: (none)
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 6.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by Raufu Abdulrahman):

* component: contrib.admin => Uncategorized
* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/36811#comment:3>

Django

unread,
Dec 18, 2025, 9:33:57 PM (8 hours ago) Dec 18
to django-...@googlegroups.com
#36811: Admin timezone warning shows incorrect plural form and confusing message
-----------------------------------+--------------------------------------
Reporter: Raufu Abdulrahman | Owner: (none)
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 6.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Comment (by Raufu Abdulrahman):

Patch submitted: https://github.com/django/django/pull/20428
--
Ticket URL: <https://code.djangoproject.com/ticket/36811#comment:4>

Django

unread,
2:38 AM (3 hours ago) 2:38 AM
to django-...@googlegroups.com
#36811: Admin timezone warning shows incorrect plural form and confusing message
-----------------------------------+--------------------------------------
Reporter: Raufu Abdulrahman | Owner: (none)
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 6.0
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by Antoliny):

* resolution: => duplicate
* status: new => closed

Comment:

Raufu :) Thank you for reporting the issue and for taking the time to
contribute to django .
You’re right that the current timezone warning message is awkward, but it
looks like this issue already exists.
duplicated #35951
--
Ticket URL: <https://code.djangoproject.com/ticket/36811#comment:5>
Reply all
Reply to author
Forward
0 new messages