[Zope-dev] Re: SVN: Zope/trunk/lib/python/DateTime/ tidy up legacy time zones

Tres Seaver tseaver at palladion.com
Tue Oct 23 10:05:14 EDT 2007


In response to Laurence Rowe's checkin:

  http://svn.zope.org/Zope/?rev=80958&view=rev

Sidnei da Silva wrote:

> May I ask why the 'Brazil/DeNoronha' timezone was commented out?
> AFAICT, it's a valid timezone. At least I can find several references,
> one of which seems to imply that 'Brazil/DeNoronha' is an alias to
> 'America/Noronha'.
> 
> http://www.tldp.org/HOWTO/TimePrecision-HOWTO/tz.html
> http://dev.joyent.com/projects/connector/browse/trunk/vendor/gems/tzinfo-0.3.4/lib/tzinfo/definitions/Brazil/DeNoronha.rb?rev=414


Laurence Rowe wrote:

> There was no data for it. Trying to retrieve it from the _tzinfo cache
> resulted in a KeyError, it's not in pytz.common_timezones or the
> _zmap.
>
> 'America/Noronha' is not in pytz.common_timezones either.
>
> Laurence

There *is* data for the zone in DateTimeZone.py, however;  I'm pretty
wure that we are supposed to fall back to that data if pytz misses;
otherwise we risk breaking old pickles.  Amos, can you confirm?


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com



More information about the Zope-Dev mailing list