[Zope] year 2k-bug entering 30.12.2000 in properties type date ???

Jim Fulton jim@digicool.com
Thu, 03 Feb 2000 09:41:32 -0500


Nico Grubert wrote:
> 
> hi,
> 
> I have created a Zclass and property sheets "Konstanten".
> Going to "/Control_Panel / Products / DOCProdukt / DOCClass /
> propertysheets / common / Konstanten/"
> and adding a Property my_date of type date and entering 30.12.2000 into
> the value-field wil bring me a Zope-error:
> 
> Error Type: Invalid Date-Time String
>             Error Value: 30.12.2000
> 
> Entering 30.12.1999 works fine. Is it a year 2k-bug I cannot enter a
> date like dd.mm.2000 ???
> I use Zope 2.0.1.

I can't reproduce this in 2.1.3.  I suggest upgrading
to the latest release.

I should note that I'm a little surprised that Zope
accepted a date like 30.12.1999 (or 30.12.2000).
In this case, the value is unambiguous because the
day is >12.  A date like: 1.2.1999 would be interpreted
as Jan 2 in the US, but Feb 1 in Europe.  In a case like
this, Zope uses the US interpretation, for better or worse.

Jim

--
Jim Fulton           mailto:jim@digicool.com
Technical Director   (888) 344-4332              Python Powered!
Digital Creations    http://www.digicool.com     http://www.python.org

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.