[Zope-dev] DateTime bug/feature?

Steve Alexander steve@cat-box.net
Fri, 24 Aug 2001 18:12:43 +0100


I get different times from a string, depending whether I use '-' or '/' 
as a date delimiter.

 >>> from DateTime.DateTime import DateTime
 >>> DateTime('2001-08-20').pCommonZ()
'Aug. 20, 2001 12:00 am GMT+0'
 >>> DateTime('2001/08/20').pCommonZ()
'Aug. 20, 2001 12:00 am GMT+1'
 >>>

I find the difference a tad surprising.

Is this a bug or a feature?

If it's a bug, I'll work on a fix.



I'm guessing this is a feature; perhaps using the '-' delimiter suggests 
I'm trying to use ISO formatting.

I'm running this in a GMT+1 timezone btw.

Zope latest from CVS, Python 2.1.

--
Steve Alexander
Software Engineer
Cat-Box limited