On Sun, 23 May 2004 10:28:33 +1200
Nick Rout <[EMAIL PROTECTED]> wrote:

> what is the result of ls -l /etc/timezone (it should be pointing to
> /usr/share/zoneinfo/Pacific/Auckland)
> 
... or cat /etc/timezone in a Debian system like mine. 
To view/change timezone in Debian I've found three commands, 
all beginning on tz (and that require root privileges): 
tzconfig, tzselect and tzsetup.
Each user can have (her/his) own timezone editing .bash_profile 
(i.e. the .profile for the user's shell) to set and export the 
TZ environment variable. 

-juan

PD:
A tzselect session is rather amusing, for example:

Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean.
 1) Africa
 ..
10) Pacific Ocean
#? 10
Please select a country.
 1) Chile                      15) Northern Mariana Islands
 ...
12) New Zealand                26) US minor outlying islands
...
#? 12
Please select one of the following time zone regions.
1) most locations
2) Chatham Islands
#? 1
The following information has been given:
        New Zealand
        most locations
Therefore TZ='Pacific/Auckland' will be used.
Local time is now:      Sun May 23 12:22:39 NZST 2004.
Universal Time is now:  Sun May 23 00:22:39 UTC 2004.
Is the above information OK?
1) Yes
2) No
#? 1

You can make this change permanent for yourself by appending the line
        TZ='Pacific/Auckland'; export TZ
to the file '.profile' in your home directory; then log out and log in again.

Reply via email to