Fred Drake wrote:
> On 9/6/05, Stuart Bishop <[EMAIL PROTECTED]> wrote:
>
>>Is this something I need to be aware of? Because I'm not ;)
>
>
> This test in the Zope 3 trunk is failing:
>
> def testParseTimeZoneNames(self):
> dt = self.format.parse('01.01.2003 09:48 EST', 'dd.MM.yyyy HH:mm zzz')
> self.assertEqual(dt.tzinfo.utcoffset(dt),
> datetime.timedelta(hours=-6))
> self.assertEqual(dt.tzinfo.zone, 'EST')
> # I think this is wrong due to a bug in pytz
> self.assertEqual(dt.tzinfo.tzname(dt), 'CST')
>
> dt = self.format.parse('01.01.2003 09:48 US/Eastern',
> 'dd.MM.yyyy HH:mm zzzz')
> self.assertEqual(dt.tzinfo.utcoffset(dt),
> datetime.timedelta(hours=-5))
> self.assertEqual(dt.tzinfo.zone, 'US/Eastern')
> # I think this is wrong due to a bug in pytz
> self.assertEqual(dt.tzinfo.tzname(dt), 'EST')
>
> This is from src/zope/i18n/tests/test_formats.py, line 304. This
> failed both before and after your latest update (sometime in the last
> few hours).I talked to Gary about this. I've fixed the i18n code and tests, and am just adding another test (prove historical timezone handling) before committing. -- Stuart Bishop <[EMAIL PROTECTED]> http://www.stuartbishop.net/
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Zope3-dev mailing list [email protected] Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
