I'm using the date_based.archive_week generic view, and it provides a
'week' datetime.date object for my template to use. When I output this
in my template: {{ week|date:"W" }} - I get a different week (the
previous one, to be exact). This is due to the fact that weeks begin
with Sunday in generic views, while W in the date filtering gives the
ISO-8601 week number where weeks start with Monday.

Is there a workaround for this (e.g., an alternate to "W" in the date
filtering) or should this be a ticket?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to