On Tue, 2011-10-25 at 21:51 +0300, Jussi Lahtinen wrote: 

> Next time please make it ready to run project!
> 
> I'm not sure this is correct: "Europe/Mariehamn".
> I don't live in Mariehamn, but there is only one timezone in Finland!
> Confusion... but then it should be Helsinki which is our capital..!?
> Gnome shows my location as Vantaa which is correct.
> 
> Ubuntu 11.04 64bit also with gnome 2.
> 
> Jussi


Thanks Jussi,

Hmmm.  Well that just about squashes that good idea.  My code just took
the first md5 matched file in /usr/share/zoneinfo, so in your case
Europe/Helsinki just happened to be the second one found.  Why Aaland
Islands (or Ă…land Islands) get their own zoneinfo file is unknown,
especially when I look at the zoneinfo database and see that the rule
for the data is just "Link Europe/Helsinki".  

I've now taken another look at the zoneinfo files and there are a lot of
cases where the md5sums are equivalent.  So my current approach is
squashed and I'll have to find another generic way to get the user's
timezone.

(I sent the code as source because I didn't want anyone to fear that I
was going to compromise their time data somehow.)

Bruce 
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to