[Zope3-dev] Re: SVN: Zope3/branches/3.3/ Fixed issue 525: DateWidget ru-format

Paul Winkler pw_lists at slinkp.com
Wed Jun 28 11:51:19 EDT 2006


On Wed, Jun 28, 2006 at 11:47:28AM +0200, Christian Theune wrote:
> I'm very much against "relaxed" date/time format checking. I tend to 
> give my user the exact format that is expected and fail otherwise. All 
> the guessing in the past led to bad bad errors because the field order 
> the user entered was syntactically compatible but had a semantically 
> different meaning.
> 
> E.g.
> 
> 02/05/2005 and 02.05.2005 are two different things.

As another data point, I recently stumbled on this quirk
of zope 2's DateTime class:

>>> DateTime('2006/01/01').timezone()
'US/Eastern'
>>> DateTime('2006/01/01').timeTime()
1136091600.0
>>> DateTime('2006-01-01').timezone()
'GMT+0'
>>> DateTime('2006-01-01').timeTime()
1136073600.0

AFAICT, this is a feature, not a bug.

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope3-dev mailing list