Code

Opened 8 years ago

Closed 8 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
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: UI/UX:

Description

Seems like a typo, LocalTimezone should be initialized with datetime object as an argument. See the patch below.

Attachments (1)

timesince.patch (397 bytes) - added by Alex Dedul 8 years ago.

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by Alex Dedul

comment:1 Changed 8 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(In [3186]) Fixed #2163 -- Corrected typo when handling datetimes with timezones in the timesince filter. Thanks, Alex Dedul.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.