Edit History Actions Discussion

Diff for "FAQ/Timezone"

Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2006-07-29 07:26:08
Size: 409
Comment:
Revision 3 as of 2008-02-17 20:01:05
Size: 408
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
echo 'export TZ="UTC"' >> ~/.profile echo 'export TZ="UTC"' >> ~/.bashrc
Line 14: Line 14:
 ["CategoryFAQ"]  [[CategoryFAQ]]

Timezone

It is possible to change the timezone in the shell by exporting the TZ variable. You can do this by typing the following command:

export TZ="UTC"

This will change the timezone to UTC. To look at the available timezones list the files in /usr/share/zoneinfo

To make the changes permanent use this command:

echo 'export TZ="UTC"' >> ~/.bashrc