[Zope] zopetime behaviour
Andreas Jung
lists at zopyx.com
Tue Sep 20 04:57:42 EST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Because of the time zone? strftime() formats the DateTime instance
according to local time.
- -aj
Richard Harley wrote:
> Hi all
>
> I hope I'm not missing something obvious here. ZopeTime is gaining
> two hours when it's string formatted. * thistime =
> context.ZopeTime().strftime("%Y/%m/%d %H:%M:%S") print "ZopeTime:"
> print context.ZopeTime()
>
> print "String formatted ZopeTime:" print thistime *
>
> The output is this:*
>
> *ZopeTime: 2011/09/20 10:16:12.628 GMT+1
>
> String formatted ZopeTime: 2011/09/20 12:16:12
>
> How come string formatted ZopeTime gains two hours?
>
> Cheers Rich
>
> _______________________________________________ Zope maillist -
> Zope at zope.org https://mail.zope.org/mailman/listinfo/zope ** No
> cross posts or HTML encoding! ** (Related lists -
> https://mail.zope.org/mailman/listinfo/zope-announce
> https://mail.zope.org/mailman/listinfo/zope-dev )
- --
ZOPYX Limited | zopyx group
Charlottenstr. 37/1 | The full-service network for Zope & Plone
D-72070 Tübingen | Produce & Publish
www.zopyx.com | www.produce-and-publish.com
- ------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJOeGOVAAoJEADcfz7u4AZjEPwLv2HbM/+FpBxkMn311JRhsZc4
wcLe6m6QzQ9WLgqiktGsSWaOuN3n1d+jDW1j450kE1o9mDr+J9mrclux51iF+sHL
BhISUhk2szLTaGBrkEOwpMKYBxSm1i6g3aeLL5zEsikcsH9vbmG1oTXPlrXf/UvN
CMDUIU2MAl5OHGhKUt9m1DsUWoeqKoexH+N7+IRpmKL1FMgACNh3B9kWK+8xUmJC
mUqX8sOW3OOnneniK2eTZzjYwMl8QpYzOt/dIpomUuc1TGfRJ/SD7yklmxy8Y/Z2
q7TWPBi/PLzKhxF0FXM/nQi+k3bR5de6JfVLxrffYn231lTLcQXwzHs1tk6oC1dj
V5cmYWmXrWxNqTv8szl/1JSx9a+rhdMFdiitg4mdq2X4Ca9e9e8qPRZkZ9gdDgpY
iEU9ROio9Ja/wjJsL8ayC5IzAN7VzFw0GCkOM0emAYDx82IdyiJo4n/Lsz4FNtFJ
d5EZ4usABY98QJ2yKGuU9H6NEzuXwrU=
=tdGx
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 310 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20110920/3495c718/attachment.vcf
More information about the Zope
mailing list