[Zope3-Users] obtaining time zone from http request

Alen Stanisic alen.stanisic at gmail.com
Mon Aug 29 18:43:58 EDT 2005


Thanks Stephan, Garry,

I definitely remember selecting the correct time zone during the
installation of my operating system but obviously picked the wrong
language.

Alen

On Mon, 2005-08-29 at 09:50 -0400, Gary Poster wrote:
> On Aug 29, 2005, at 6:39 AM, Stephan Richter wrote:
> 
> > On Monday 29 August 2005 02:32, Alen Stanisic wrote:
> >
> >> My self.request.locale object is set but seems to be wrong
> >>
> >> str(self.request.locale.id)  =>  <LocaleIdentity (en, None, US,  
> >> None)>
> >>
> >> while I'd expect it to be something like Australia/Sydney.
> >>
> >> Is this a default locale?
> >>
> >
> > No, your browser seems to be set incorrectly. Check your browser  
> > settings and
> > the HTTP-ACCEPTED-LANGUAGES header.
> 
> And FWIW, once you get your browser settings correct, for the  
> timezone part of the locale database, en-* is all the same--that is,  
> if my locale is en-US, I get all en* locations (including Casablanca,  
> Tokyo, and other interesting locations). :-)  I think you will too.
> 
> Gary
> 



More information about the Zope3-users mailing list