Django

Code

Ticket #4076 (closed: fixed)

Opened 2 years ago

Last modified 1 year ago

Patch to Output Timezone in Date Fields for Atom Feeds

Reported by: Alastair Tse <alastair@liquidx.net> Assigned to: toke
Milestone: Component: RSS framework
Version: SVN Keywords: sprintsept14
Cc: alastair@liquidx.net Triage Stage: Accepted
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Currently, django.utils.feedgenerator outputs date strings for Atom 1.0 feeds without timezone information. For datetime objects that have tzinfo infor set, we should output the UTC offset if present. The patch attach will simply check whether tzinfo is set to something other than None, and thus have a valid timezone UTF offset that can be shown via strftime().

Attachments

django-svn-feedgenerator-timezone.patch (0.6 kB) - added by Alastair Tse <alastair@liquidx.net> on 04/18/07 11:07:50.

Change History

04/18/07 11:07:50 changed by Alastair Tse <alastair@liquidx.net>

  • attachment django-svn-feedgenerator-timezone.patch added.

05/09/07 06:33:42 changed by Alastair Tse <alastair@liquidx.net>

  • cc set to alastair@liquidx.net.

09/14/07 09:24:15 changed by toke

  • needs_docs set to 1.
  • stage changed from Unreviewed to Accepted.

09/14/07 15:50:19 changed by toke

  • keywords set to sprintsept14.
  • needs_docs deleted.
  • status changed from new to assigned.
  • owner changed from nobody to toke.

Looks reasonable OK for me...

09/14/07 17:38:05 changed by toke

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

Fixed in [6233]


Add/Change #4076 (Patch to Output Timezone in Date Fields for Atom Feeds)




Change Properties
Action