Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed number #4076: django.utils.feedgenerator now corectly handles t…

…imes without timezones. Thanks, Alastair Tse.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit eb11615baa96bc53226d99819d6ac59b7154f9ab 1 parent 27d0277
@jacobian jacobian authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 django/utils/
5 django/utils/
@@ -27,7 +27,10 @@ def rfc2822_date(date):
return email.Utils.formatdate(time.mktime(date.timetuple()))
def rfc3339_date(date):
- return date.strftime('%Y-%m-%dT%H:%M:%SZ')
+ if date.tzinfo:
+ return date.strftime('%Y-%m-%dT%H:%M:%S%z')
+ else:
+ return date.strftime('%Y-%m-%dT%H:%M:%SZ')
def get_tag_uri(url, date):
"Creates a TagURI. See"
Please sign in to comment.
Something went wrong with that request. Please try again.