Hm, also zuerst würde ich checken ob das Datum wirklich umgestellt ist.
Du kannst es dir mit
anzeigen lassen.
Ist das Datum ok, und wird dennoch das falsche Bild angezeigt, schau dir mal die Klasse DateTime an ->
http://zope.org/Documentation/Books/Zop ... endixB.stx
Da gibt es ein paar Funktionen die dich vielleicht weiterbringen.
greaterThanEqualTo(t)
Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time greater than or equal to the specified DateTime or time module style time. Revised to give more correct results through comparison of long integer milliseconds.
greaterThan(t)
Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time greater than the specified DateTime or time module style time. Revised to give more correct results through comparison of long integer milliseconds.
lessThanEqualTo(t)
Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time less than or equal to the specified DateTime or time module style time. Revised to give more correct results through comparison of long integer milliseconds.
lessThan(t)
Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time less than the specified DateTime or time module style time. Revised to give more correct results through comparison of long integer milliseconds.
Damit kannst du DateObjekte vergleichen, ist vermutlich besser als Strings mit grösser/kleiner zu vergleichen.
Code: Alles auswählen
<dtml-if expr="_.DateTime().greaterThanEqualTo(_.DateTime('21.06.03'))
and
_.DateTime().lessThan(_.DateTime('01.09.03'))">
<dtml-var Sommer.jpg>Es ist Sommer!
</dtml-if>