On 11.01.10 01:47, Martin Aspeli wrote:
Laurence Rowe wrote:
I believe the current behaviour is intentional to preserve backwards
compatibility. See the discussion starting here:
https://mail.zope.org/pipermail/zope-dev/2007-October/030042.html
Maybe it was 'fixed' on 2.10 branch some time
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_
On 05.03.10 11:10, Andreas Zeidler wrote:
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.
oops, it does, of course (i think i'm still a bit
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Martin Aspeli wrote:
Hi,
We have a failing test in plone.app.dexterity 1.0a7. This is simply
trying to compare two dates:
from DateTime import DateTime
DateTime() DateTime(md.CreationDate())
True
At least here in
On 2010-1-10 04:36, Martin Aspeli wrote:
so in your test, `DateTime(md.CreationDate())` will always be the
current time, but with an implicitly added 'GMT+0' while `DateTime()`
will be the current time in your local time zone. so if i'm not
mistaken, on plone 4.0 the test with fail for you an
Wichert Akkerman wrote:
On 2010-1-10 04:36, Martin Aspeli wrote:
so in your test, `DateTime(md.CreationDate())` will always be the
current time, but with an implicitly added 'GMT+0' while `DateTime()`
will be the current time in your local time zone. so if i'm not
mistaken, on plone 4.0 the
2010/1/10 zopyxfil...@gmail.com:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Martin Aspeli wrote:
Wichert Akkerman wrote:
On 2010-1-10 04:36, Martin Aspeli wrote:
so in your test, `DateTime(md.CreationDate())` will always be
the current time, but with an implicitly added 'GMT+0' while
Laurence Rowe wrote:
2010/1/10zopyxfil...@gmail.com:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Martin Aspeli wrote:
Wichert Akkerman wrote:
On 2010-1-10 04:36, Martin Aspeli wrote:
so in your test, `DateTime(md.CreationDate())` will always be
the current time, but with an implicitly