andres@corrada.com wrote:
Using the %{If-Modified-Since}i directive in the Apache log, we have been able to confirm that Netscape 3.01 and 4.06 on Win32 are sending If-Modified-Since with "16-May-00" type dates. Dieter's solution indeed fixes the problem by removing the Overflow error that they cause when the int() function is called on them.
I noticed that Zope 2.1.4 does not have these int() calls in the offending section of lib/python/OFS/Image.py but they are present in 2.1.6. Why were they introduced on the latter version? Can they be removed in future versions?
No, they can't - HTTP datetime headers specify time in whole seconds, while the time() function on Unix machines returns time with a floating point time. In order for Zope to work correctly the you have to make timeTime()'s result be a whole number. long() would be fine though, or floor(). -- Itamar S.T. itamar@maxnm.com