Time zones

Matías Graña matiasg at dm.uba.ar
Fri Feb 1 16:52:19 UTC 2008


First thing to know is whether the zoneinfo is correct. I'm at a gentoo
box now, so the following instructions could differ a little bit for
Ubuntu.

*) try zdump to see if you're lucky to have your specific dst zone
correctly handled:

/usr/sbin/zdump -v Canada/Pacific | grep 2008

If I do this on my box, I get

Canada/Pacific  Sun Mar  9 09:59:59 2008 UTC = Sun Mar  9 01:59:59 2008 PST isdst=0
Canada/Pacific  Sun Mar  9 10:00:00 2008 UTC = Sun Mar  9 03:00:00 2008 PDT isdst=1
Canada/Pacific  Sun Nov  2 08:59:59 2008 UTC = Sun Nov  2 01:59:59 2008 PDT isdst=1
Canada/Pacific  Sun Nov  2 09:00:00 2008 UTC = Sun Nov  2 01:00:00 2008 PST isdst=0

This means that if you tell your computer you are in a zone inside
Canada/Pacific (I guess British Columbia is there?) then at Sunday March
9 it will jump from 1:59:59 to 3:00:00.
Now, this comes from a file sitting in
/usr/share/zoneinfo/Canada/Pacific (again, this is gentoo, your mileage
may vary).

*) If this is the case, you can either:
	a) Find a zone in /usr/share/zoneinfo to be in GMT-8 which does not
	dst and tell your machine you are there (the easy but ugly choice)
	or b) (the right but difficult choice) find a way to edit
	/usr/share/zoneinfo/Canada/Pacific (it is in a form I can't
	understand). I know once you did this, you can use /usr/sbin/zic to
	compile your txt file to the new zoneinfo file.

Well, actually the first step is needed. None of my proposed second
steps seems easy and correct for me. I hope someone comes with the good
second step.

HTH,
Matías

From: Doug Robinson <dkrr at telus.net>
> Hello
>     I live in a region of British Columbia Canada that does not
> change to dst. How can I tell Unbuntu to follow suite?
> 
> Thanks for your time.
> 
> dkr
> 
> 
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: 
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users




More information about the ubuntu-users mailing list