30 Oct
2000
30 Oct
'00
6:59 p.m.
Marcus Mendes writes:
Why the ZopeTime puts the differents values in the code bellow?
<dtml-with ZopeTime> <dtml-var "'This is %s, %s/%s/%i , %s' % (Day(), dd(), mm(), year(), TimeMinutes())" capitalize> <dtml-var " '%s' % strftime('%A')" capitalize> </dtml-with>
The first <dtml-var ...> give me todays date; the second <dtml-var ...> give me the tomorrow date!! In earlier Zope versions, most methods of "DateTime" instances used local time, but "strftime" used GMT.
As I understand it, this has been changed in Zope 2.2. At least, Brian asked in the list, whether it should be changed and got some positive feedback. Dieter