Re: Possible DateTime timezone-related regression in Zope 2.12

Andreas Zeidler <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On 05.03.10 10:53, Andreas Zeidler wrote:
> also, look at the following (using `DateTime` 2.12):
> 
>   $ ~/plone/coredev/branches/4.0/bin/zopepy
>   >>> from DateTime import DateTime
>   >>> now = DateTime()
>   >>> now == DateTime(now)
>   True
>   >>> now == DateTime(now.ISO())
>   False
> 
> this is a _pretty_ behaviour, to say the least! :)

heh, that should have read "_pretty_ strange", btw... :)

so, after some more reading and discussing this with Stefan, it seems
the example should really use `ISO8601()` instead of `ISO()`.  however,
this fails as well:

  $ ~/plone/coredev/branches/4.0/bin/zopepy
  >>> from DateTime import DateTime
  >>> now = DateTime()
  >>> now == DateTime(now.ISO8601())
  False
  >>> now.ISO8601()
  '2010-03-05T11:06:09+01:00'

unlike stated in `DateTime.interfaces` the string returned `ISO8601`
method does not contain the time zone.

tres, do you have any comments on this?

cheers,


andi

-- 
zeidler it consulting - http://zitc.de/ - [email protected]
friedelstraße 31 - 12047 berlin - telefon +49 30 25563779
pgp key at http://zitc.de/pgp - http://wwwkeys.de.pgp.net/
plone 4.0 alpha released! -- http://plone.org/products/plone/
_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.