Alexander Alvarado wrote at 2003-9-9 23:52 +0000:
I'm traying to convert variables that I recieve from a JavaScript tu ISO date format using:
<dtml-var Arrival fmt=ISO> <dtml-var Departure fmt=ISO>
Almost surely, "Arrival" and "Departure" are strings and not "DateTime" objects. Unlike "DateTime" objects, strings do not have an "ISO" method. Therefore, "ISO" is interpreted as a (C) format string. As it does not contain format specifiers ("%spec"), it is unable to convert the argument. You find details about the "fmt" attribute in <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> Your problem will go away when "Arrival" (and friends) are "DateTime" objects. Depending on their format, you may be able to use: <dtml-var expr="ZopeTime(Arrival)" fmt=ISO> Dieter