TimezoneFix

Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2006-03-24 03:59:55
Size: 2272
Editor: c211-28-183-112
Comment: Cleanup, a little.
Revision 5 as of 2006-03-24 05:06:18
Size: 2603
Editor: fw2
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
The Australian timezone change is a couple of days away. If you are running servers depending on accurate time, you will need to check and possibly update them. Note that this process is generic enough that you can use it with any timezone, not just for Australia. The Australian timezone change is a couple of days away. If you are running servers depending on accurate time, you will need to check and possibly update them. Note that this process is generic enough that you can use it with any timezone, not just for Australia, and should work fine with almost all Linux distrubutions that use glibc (99% of them - if you don't know, you are probably using glibc).
Line 7: Line 7:
For Warty, Hoary and Breezy you will have to update your system manually. There are binary packages available at http://people.ubuntu.com/~jbailey/glibc-tzupdate/ but they do not cover all architechtures. If your architechture isn't covered, or you want to do it manually, read on. For Warty, Hoary and Breezy you will have to update your system manually. There are binary packages available at http://people.ubuntu.com/~jbailey/glibc-tzupdate/ but they do not cover all architechtures. If your architechture isn't covered, or you want to do it manually, read on. Please remember that if libc6 gets updated during this time (security update), you will have to do this all over again.
Line 11: Line 11:
To check if your timezone change will happen on either "Sun Mar 26" or "Sun Apr 2", run `zdump -v Australia/Melbourne | grep 2006`. Replace Australia/Melbourne with your own timezone. To check if your timezone change will happen on either "Sun Mar 26" or "Sun Apr 2", run: {{{
zdump -v Australia/Melbourne | grep 2006
}}}
Replace Australia/Melbourne with your own timezone.
Line 19: Line 21:
1. Download the timezone (australasia) file. It includes the Australian, Indian and Pacific timezone information.  1. Download the timezone (australasia) file.  Run: {{{
wge
t -nH -N http://people.debian.org/~anibal/timezone/australasia
}}}
Line 21: Line 25:
    `wget -nH -N http://people.debian.org/~anibal/timezone/australasia`  It includes the Australian, Indian and Pacific timezone information.
Line 23: Line 27:
    If you don't want to use my copy of the australasia file, download http://ftp.gnu.org/pub/gnu/glibc/glibc-2.4.tar.bz2 (size is 15,202,445) and extract glibc-2.4/timezone/australasia.  If you don't want to use Anibals copy of the australasia file, download http://ftp.gnu.org/pub/gnu/glibc/glibc-2.4.tar.bz2 (size is 15,202,445) and extract glibc-2.4/timezone/australasia.
Line 25: Line 29:
    Together with my copy of the australasia file, there are files with the md5 checksum and my gpg signature of the australasia file.  Together with Anibals copy of the australasia file, there are files with the md5 checksum and his gpg signature of the australasia file.
Line 27: Line 31:
2. Backup you zoneinfo directory.  2. Backup your zoneinfo directory. Run: {{{
tar cf - /usr/share/zoneinfo | bzip2 -9 - > zoneinfo.tar.bz2`
}}}
Line 29: Line 35:
    `tar cf - /usr/share/zoneinfo | bzip2 -9 - > zoneinfo.tar.bz2`  3. Update the zone info for australasia. Run: {{{
sudo zic australasia
}}}
Line 31: Line 39:
3. Run:  4. Check your timezone change. {{{
zdump -v Australia/Melbourne | grep 2006`
}}}
Line 33: Line 43:
    `sudo zic australasia`

4. Check your timezone change.

    `zdump -v Australia/Melbourne | grep 2006`

    It should show "Sun Apr 2".
 It should show "Sun Apr 2".

The Australian timezone change is a couple of days away. If you are running servers depending on accurate time, you will need to check and possibly update them. Note that this process is generic enough that you can use it with any timezone, not just for Australia, and should work fine with almost all Linux distrubutions that use glibc (99% of them - if you don't know, you are probably using glibc).

These notes have been adapted from an email from Anibal Monsalve Salazar on the debian-au mailing list. Many thanks to Anibal.

If you are running Dapper, you can update your Australian timezones by just running 'apt-get update; apt-get install libc6'. The update may have been automatically installed by update-manager already.

For Warty, Hoary and Breezy you will have to update your system manually. There are binary packages available at http://people.ubuntu.com/~jbailey/glibc-tzupdate/ but they do not cover all architechtures. If your architechture isn't covered, or you want to do it manually, read on. Please remember that if libc6 gets updated during this time (security update), you will have to do this all over again.

To check/change your timezone, use tzconfig. In my case, tzconfig tells me that my timezone is Australia/Melbourne.

To check if your timezone change will happen on either "Sun Mar 26" or "Sun Apr 2", run:

zdump -v Australia/Melbourne | grep 2006

Replace Australia/Melbourne with your own timezone.

If your timezone change will happen on "Sun Apr 2", you're safe.

If your timezone change will happen on "Sun Mar 26", you may want to update the Australian timezones.

If you cannot update libc6, you can update the Australian timezones manually, as described in the following lines.

  1. Download the timezone (australasia) file. Run:

    wget -nH -N http://people.debian.org/~anibal/timezone/australasia
    It includes the Australian, Indian and Pacific timezone information.

    If you don't want to use Anibals copy of the australasia file, download http://ftp.gnu.org/pub/gnu/glibc/glibc-2.4.tar.bz2 (size is 15,202,445) and extract glibc-2.4/timezone/australasia. Together with Anibals copy of the australasia file, there are files with the md5 checksum and his gpg signature of the australasia file.

  2. Backup your zoneinfo directory. Run:

    tar cf - /usr/share/zoneinfo | bzip2 -9 - > zoneinfo.tar.bz2`
  3. Update the zone info for australasia. Run:

    sudo zic australasia
  4. Check your timezone change.

    zdump -v Australia/Melbourne | grep 2006`
    It should show "Sun Apr 2".

AustralianTeam/Archives/TimezoneFix (last edited 2008-08-06 16:29:45 by localhost)