I've created a ticket to propose a little change in the documentation :
https://code.djangoproject.com/ticket/16392
Yohan
2011/6/29 Yohan Boniface
> 2011/6/28 Stephen Burrows
>
>>
>> The "O" formatter - or more specifically, the "Z" formatter - does
>> include that bit of magic. Is there a par
2011/6/28 Stephen Burrows
>
> The "O" formatter - or more specifically, the "Z" formatter - does
> include that bit of magic. Is there a particular reason for this?
>
I ask myself the same question. Why for the "Z" (and co) and not for the "c"
?
> Also, if a timezone is assumed, wouldn't it ma
I realize I may have been a little unclear. I assumed that this
problem was surfacing with relation to datetime fields on models,
which are inherently naive. (For example, an attempt to render a blog
entry's pubdate.) If the "c" formatting option were used in
conjunction with a timezone-aware datet
Hi Stephen, Hi Ian, Hi all,
As you say Stephen, isoformat is handling the timezone offset for non naive
datetime, and so does Django in the "c" date formatter. And I should have
noticed and mentionned this in my previous email.
I'll take the time to give a better look to this issue, with these new
On Sun, Jun 26, 2011 at 12:27 AM, Stephen Burrows <
stephen.r.burr...@gmail.com> wrote:
> This is related to the recent discussion about timezone-aware datetime
> storage [1] and how django doesn't do it. Since the date filter's "c"
> argument is handled with python's datetime.isoformat() [2] time
This is related to the recent discussion about timezone-aware datetime
storage [1] and how django doesn't do it. Since the date filter's "c"
argument is handled with python's datetime.isoformat() [2] timezone-
naive datetimes will not display a UTC offset.
[1]
http://groups.google.com/group/djang
Hi,
In Django's documentation, the 2 following points are mentionned [1]:
- About date formating:
"Uses the same format as PHP's date() function (http://php.net/date) with
some custom extensions."
- About the specific "c" format:
"ISO 8601 Format." e.g. : 2008-01-02T10:30:00.0