How to set the time zone and daylight savings in Debian Linux
use
dpkg-reconfigure tzdata
as root if you are on Debian, or:
sudo dpkg-reconfigure tzdata
on Ubuntu. You will get to a GUI that works in a terminal, where you can set your location. Daylight savings will automatically be included.
webworks@host3:~$ date
Tue Mar 31 19:53:28 UTC 2009
user1@host3:~$ su -
Password:
host3:~# tzconfig
WARNING: the tzconfig command is deprecated, please use:
dpkg-reconfigure tzdata
host3:~#
host3:~# dpkg-reconfigure tzdata
Current default timezone: 'Europe/Stockholm'
Local time is now: Tue Mar 31 21:58:50 CEST 2009.
Universal Time is now: Tue Mar 31 19:58:50 UTC 2009.
host3:~# date
Tue Mar 31 21:58:57 CEST 2009
tzselect only gives you a view of the time at a particular timezone. to change the timezone use "dpkg-reconfigure tzdata" instead
Läs mer: How to set time zone? [Archive] - Ubuntu Forums
Recent Comments
2010-08-09 20:40:58
2010-07-19 18:42:38
2010-07-19 17:20:37
2010-07-07 12:01:32
2010-06-08 11:33:28
2010-05-05 13:11:30
2010-04-29 00:22:20
2010-04-15 22:06:20
2010-04-13 11:19:12
2010-04-09 22:29:01