Timezone HOWTO

From Global Shellz Wiki
Jump to: navigation, search

Contents

Time Zone Setting (Correct your shell's time/date)

Do you want to set your own timezone on your shell account? It is best to be in sync'd with your own timezone even if the server has a different time. This will help you to keep track of your own timezone.

Finding the time zone

The time zone is usually in the form of Continent/City - for example, if you live in Philippines, it's Asia/Manila; or if you live in Germany, it's Europe/Berlin. Debian has a tzselect command.

A list of time zones can be found at /usr/share/zoneinfo/ and/or this PHP docs page.

Add this line to your startup script (usually ~/.shrc, ~/.bashrc, ~/.zshrc, ~/.cshrc etc.):

=sh, bash, ksh, zsh

export TZ=Continent/City

=csh, tcsh

setenv TZ Continent/City

Setting correct time zone in irssi

This fix is only temporary, and the time zone will be reset once you quit irssi.

/script exec $ENV{"TZ"} = "Continent/City";

Then press Ctrl-L or type /redraw<code> to update the status bar clock.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox