Tiny Core Base > TCB Q&A Forum

[SOLVED] How to change timezone?

(1/5) > >>

kagashe:
The time indicated by the clock is UTC.

I would like to change it to my timezone Kolkata (UTC+5:30). I looked at /usr/share/zoneinfo/Asia in which my city is not listed. I also find that /etc/localtime is not a symlink.

How to set it?

kagashe

Juanito:
What you can do is get hold of the latest timezone data tarball, extract the timezone you need and then make an extension of it/add it to your backup.

Once that is done, you can manually run the timezone update script from a terminal window or make your own script.

The timezone data extract is explained in linux-from-scratch or, if needed, I can dig out what I did in dsl to achieve the same thing

kagashe:

--- Quote from: Juanito on January 07, 2009, 10:45:22 PM ---What you can do is get hold of the latest timezone data tarball, extract the timezone you need and then make an extension of it/add it to your backup.

Once that is done, you can manually run the timezone update script from a terminal window or make your own script.

The timezone data extract is explained in linux-from-scratch or, if needed, I can dig out what I did in dsl to achieve the same thing

--- End quote ---
I could not get any tarball on LFS, however, I downloaded Debian source package tzdata_2008i.orgig.tar.gz and extracted it but there is nothing to compile, then how to make tce? There are text files and one file is "Asia" which has Kolkata. How to use it?

I could not find any timezone update script on TC.

kagashe

Juanito:
I'm stuck on a w2k machine at the moment, but it should go something like this:
--- Code: ---$ sudo mkdir /tmp/tzdata
$ sudo chown tc:staff /tmp/tzdata
$ cd /tmp/tzdata
$ wget -c ftp://elsie.nci.nih.gov/pub/tzdata2008i.tar.gz
$ tar -zxvf tzdata2008i.tar.gz
$ zic -d zoneinfo asia [maybe Asia]
$ sudo cp zoneinfo/Asia/Kolkata /usr/share/zoneinfo/Asia/
$ sudo rm /etc/localtime
$ sudo cp /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
--- End code ---

To test if it works (make sure you have a network connection and that your hardware clock is set to GMT/UTC), I think you need:
--- Code: ---$ sudo getTime.sh
--- End code ---


kagashe:
Where is zic on TC? I have glib2 glib2-devs compiletc loaded.

kagashe

Navigation

[0] Message Index

[#] Next page

Go to full version