Opened 18 years ago
Closed 18 years ago
#2163 closed defect (fixed)
[patch] django.utils.timesince.timesince fails on datetime objects with tzinfo set
Reported by: | Alex Dedul | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Core (Other) | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Seems like a typo, LocalTimezone should be initialized with datetime object as an argument. See the patch below.
Attachments (1)
Change History (2)
by , 18 years ago
Attachment: | timesince.patch added |
---|
comment:1 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [3186]) Fixed #2163 -- Corrected typo when handling datetimes with timezones in the timesince filter. Thanks, Alex Dedul.