Changeset 8221
- Timestamp:
- 08/05/08 18:52:03 (4 months ago)
- Files:
-
- django/trunk/django/contrib/syndication/feeds.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/contrib/syndication/feeds.py
r8216 r8221 142 142 143 143 # Round the timezone offset to the nearest half hour. 144 tzOffsetMinutes = sign * ((tzDifference.seconds / 60 + 15) / 30) * 30 145 tzOffset = timedelta(minutes=tzOffsetMinutes) 146 pubdate = pubdate.replace(tzinfo=FixedOffset(tzOffset)) 144 if pubdate: 145 tzOffsetMinutes = sign * ((tzDifference.seconds / 60 + 15) / 30) * 30 146 tzOffset = timedelta(minutes=tzOffsetMinutes) 147 pubdate = pubdate.replace(tzinfo=FixedOffset(tzOffset)) 147 148 148 149 feed.add_item(
