Setting timezones

From ClueWiki

Jump to: navigation, search

Sooo... you're wondering why the clock on your shell is a hour off?

Contents

Finding the TZ string

The TZ string is usually in the form of Continent/City - for example, if you live in Germany, TZ is Europe/Berlin. Debian has a command tzselect

A list can be found in this PHP docs page.

sh, bash

Run this command:

export TZ=Your/Timezone

If you want to make the setting permanent, add this line to your startup script (usually .bashrc in your homedir).

zsh, csh

setenv TZ Your/Timezone

irssi

This fix is only temporary, and the timezone will be reset once you quit irssi.
/script exec $ENV{"TZ"} = "Your/Timezone";

Then press Ctrl-L or enter /redraw to update the statusbar clock.

Other software

This part left blank because of lack of content. If you want to add information, poke grawity.

Personal tools
Create a book