Django

Code

Changeset 6233

Show
Ignore:
Timestamp:
09/14/07 17:29:37 (1 year ago)
Author:
jacob
Message:

Fixed number #4076: django.utils.feedgenerator now corectly handles times without timezones. Thanks, Alastair Tse.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/utils/feedgenerator.py

    r5643 r6233  
    2828 
    2929def rfc3339_date(date): 
    30     return date.strftime('%Y-%m-%dT%H:%M:%SZ') 
     30    if date.tzinfo: 
     31        return date.strftime('%Y-%m-%dT%H:%M:%S%z') 
     32    else: 
     33        return date.strftime('%Y-%m-%dT%H:%M:%SZ') 
    3134 
    3235def get_tag_uri(url, date):