21 Apr
2002
21 Apr
'02
7:50 p.m.
Josef Meile writes:
Why does this line works in Zope 2.3.3 - win2K but not in Zope 2.5.0 - win2K?
<dtml-call "REQUEST.set('startDate',_.DateTime('1970/01/01'))">
I just get the following error:
Error Type: IOError Error Value: [Errno 22] Invalid argument Traceback (innermost last): .... File C:\PROGRA~2\ZOPE-2~1.0\lib\python\DateTime\DateTime.py, line 395, in safelocaltime IOError: (see above) Here, not Zope is to blame but either Python or your C library:
Line 395 of "DateTime.DateTime" contains: "rval= localtime(t_int)". "localtime" comes from Python's "time" module. The "localtime" function under Linux is able to cope with non-positive arguments ;-) Dieter