Opened 14 years ago
Closed 14 years ago
#17343 closed Bug (fixed)
The {% now %} template tag does not use time zones
| Reported by: | Tomek Paczkowski | Owned by: | Aymeric Augustin |
|---|---|---|---|
| Component: | Template system | Version: | dev |
| Severity: | Release blocker | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | yes | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
Current django-trunk now tag uses datatime.now() instead of timezone.now().
I've made patch to fix that, but I'd really like to have some help with writing test.
Here's my fork over on github:
https://github.com/oinopion/django/commit/aad87fdd8cbdd02dd949da355efc4b7f127848a3
Attachments (1)
Change History (5)
comment:2 by , 14 years ago
| Easy pickings: | set |
|---|---|
| Needs tests: | set |
| Owner: | changed from to |
| Severity: | Normal → Release blocker |
| Triage Stage: | Unreviewed → Accepted |
comment:3 by , 14 years ago
I've also committed tests:
https://github.com/oinopion/django/commit/922bdcff16e2456d6fd9bf7575426b8d8cd900c2
Note:
See TracTickets
for help on using tickets.
To clarify the issue:
Dates that are coming from Django (when using USE_TZ = True) should be presented in users current time zone.
That means this should true (regardless of time zone used):
Currently user is presented with date localized to default time zone.