Re: datetime format and client preferred language?!?!

2007-03-01 Thread James Bennett
On 3/1/07, Jens Diemer <[EMAIL PROTECTED]> wrote: > How can i send a datetime in the client preferred format? Note: i don't > wand to use a template filter to handle this ;) And yet this is *exactly* what the 'date' template filter is for; it's a presentation issue, so a filter in the presentatio

Re: datetime format and client preferred language?!?!

2007-03-01 Thread Jens Diemer
Jens Diemer schrieb: > How can i send a datetime in the client preferred format? Note: i don't > wand to use a template filter to handle this ;) Hm! I can make this: t.strftime(_("%Y-%m-%d - %H:%M")) :) -- Mfg. Jens Diemer CMS in pure Python CGI: http://www.pylucid.org --~--~

datetime format and client preferred language?!?!

2007-03-01 Thread Jens Diemer
How can i send a datetime in the client preferred format? Note: i don't wand to use a template filter to handle this ;) Generally: - There is no "User preferred language" column in the default User table - django doesn't setup a client preferred language based on the HTTP_ACCEPT_LANGUAG