Django

Code

Ticket #2163 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

[patch] django.utils.timesince.timesince fails on datetime objects with tzinfo set

Reported by: Alex Dedul Assigned to: adrian
Milestone: Component: Core framework
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

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

Attachments

timesince.patch (397 bytes) - added by Alex Dedul on 06/15/06 05:14:29.

Change History

06/15/06 05:14:29 changed by Alex Dedul

  • attachment timesince.patch added.

06/21/06 06:11:03 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #2163 ([patch] django.utils.timesince.timesince fails on datetime objects with tzinfo set)




Change Properties
Action