Am 3. August 2008 16:10 schrieb Vladislav Vorobiev <
mymir.org@...>:
> Hallo,
>
>> Du musst nicht nachfragen. "DateTime.DateTime" (zumindest das von Zope)
>> macht es richtig:
>>
>>>>> from DateTime import DateTime
>>>>> DateTime('2008-01-01 00:00')._tz
>> 'GMT+1'
>>>>> DateTime('2008-04-01 00:00')._tz
>> 'GMT+2'
>
> Seltsam, aber bei mir liefern die beiden Beispiele GTM+0. Wie kommt das?
Hm, anscheinend gib es eine änderung bei Zope2.11.
/opt/Zope-2.10/lib/python# python
Python 2.5.2 (r252:60911, May 28 2008, 19:19:25)
[GCC 4.2.4 (Debian 4.2.4-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> DateTime('2008-01-01 00:00')._tz
KeyboardInterrupt
>>> from DateTime import DateTime
>>> DateTime('2008-01-01 00:00')._tz
'GMT+1'
/opt/Zope-2.11/lib/python# python
Python 2.5.2 (r252:60911, May 28 2008, 19:19:25)
[GCC 4.2.4 (Debian 4.2.4-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from DateTime import DateTime
>>> DateTime('2008-01-01 00:00')._tz
'GMT+0'
Hier gabs eine änderung an dem DateTime modul
Launchpad #200007: DateTime(anotherDateTime) now preserves the timezone.
DateTime('2008-01-01 00:00').timezone()
'GMT+1'
Vlad
_______________________________________________
zope mailing list
zope@...
https://mail.dzug.org/mailman/listinfo/zope