Hot Koehls
  • Email
  • Feedburner
  • Linkedin
  • Twitter
  • Home
  • About
  • Archives
  • Contact
  • Software
    • S3imple Backup
    • Twitter Feed Archiver
    • FileTime
    • Flickr API Demo
Search
Home» For techies » Change timezone to GMT in Debian

Change timezone to GMT in Debian

Posted by Frank - October 7, 2009 - For techies
1

If you need to change the timezone of a Debian system, your searches will probably tell you to use the tzselect utility. That will only change the timezone for the server temporarily. Use that command and then run this:

cat /etc/timezone

See how the timezone didn’t change? Left alone, the system will revert to the timezone stored in /etc/timezone at next reboot.

Plus, tzselect does not offer the full compliment of possible timezones. I recently needed to change my server to GMT, for example, and tzselect does not include an option for it.

Instead, Debian has a less-publicized tool that will solve both problems…

dpkg-reconfigure tzdata

Run that command and it will permanently change the timezone for the system, and includes options for all sort of obscure timezones. I wouldn’t consider GMT to be obscure, but maybe that’s just me.

Took me forever to find this searching earlier today. I don’t know why this isn’t more widely noted, but there you go.

handy functions, servers

One comment on “Change timezone to GMT in Debian”

  1. Somaiah says:
    November 26, 2010 at 8:22 am

    Awesome! Thanks for posting :)

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Categories

  • For entrepreneurs
  • For everyone
  • For techies

Latest Tweets

  • The word traps planners plan themselves into | Life. Then strategy http://t.co/iANAdASb
    May 8, 2012 - 2:43 pm
  • Random network security tip for those about to appear on TV - Boing Boing http://t.co/tC1lXFQ4
    May 8, 2012 - 1:42 pm
  • A Picture http://t.co/H846Uy69
    April 27, 2012 - 12:25 pm
  • The Broken "Buy-One, Give-One" Model: 3 Ways to Save Toms Shoes | Co.Exist: World changing ideas and innovation http://t.co/RI0sVMW6
    April 10, 2012 - 12:23 pm

Recent Comments

  • whiz on What 255 characters looks like
  • Andrew on Find the second (or third, or fourth) occurence in a string
  • IanArcher on Get number of message parts in an email using PHP
  • Usama on Remove parent directories from tar archives
  • Frank on It’s dangerous to go alone

Recent Posts

  • It’s dangerous to go alone
  • Create Self-Signed Wildcard SSL Certificate
  • What comes after the yottabyte?
  • Write code like they do in Hollywood
  • Brian Rolle machine gun celebration
(c) 2012 Frank Koehl. All Rights Reserved.
  • Contact Us
  • Sitemap