Dieter Maurer wrote:
> DateTime(year,month,day) != DateTime("%d-%d-%d" % (year,month,day))
> The former uses the local timezone (which I think is right)
> while the latter uses GMT+0 (which seems not right).
> Thinks are quite bad, as the latter is used to convert
> ":date" form values into DateTime objects.
See also here:
I get different times from a string, depending whether I use '-' or '/'
as a date delimiter.
>>> from DateTime.DateTime import DateTime
'Aug. 20, 2001 12:00 am GMT+0'
'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.
I never got a reply as to whether it was a bug or a feature, so I didn't
work on a fix.
Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -