Re: date template filter + ifequal weirdness?

2007-02-12 Thread Patrick J. Anderson
On Mon, 12 Feb 2007 05:50:32 +, Patrick J. Anderson wrote: > On Mon, 12 Feb 2007 15:32:07 +1100, Malcolm Tredinnick wrote: > >> On Mon, 2007-02-12 at 03:49 +, Patrick J. Anderson wrote: >>> I think I might be missing something, but I have a problem with >>> date filter. Why doesn't this

Re: date template filter + ifequal weirdness?

2007-02-11 Thread Patrick J. Anderson
On Mon, 12 Feb 2007 15:32:07 +1100, Malcolm Tredinnick wrote: > On Mon, 2007-02-12 at 03:49 +, Patrick J. Anderson wrote: >> I think I might be missing something, but I have a problem with >> date filter. Why doesn't this template code work? >> >> {% ifequal d|date:"l" "Sunday" %} >>

Re: date template filter + ifequal weirdness?

2007-02-11 Thread Malcolm Tredinnick
On Mon, 2007-02-12 at 03:49 +, Patrick J. Anderson wrote: > I think I might be missing something, but I have a problem with > date filter. Why doesn't this template code work? > > {% ifequal d|date:"l" "Sunday" %} > > {% else %} > > {% endifequal %} > > {{ d|date:"l" }} > >

date template filter + ifequal weirdness?

2007-02-11 Thread Patrick J. Anderson
I think I might be missing something, but I have a problem with date filter. Why doesn't this template code work? {% ifequal d|date:"l" "Sunday" %} {% else %} {% endifequal %} {{ d|date:"l" }} But inside the HTML list item {{ d|date:"l" }} produces full weekday names. Can and