Timezone change on debian Lenny or Squeeze

It's really simple, just type this command:

sudo dpkg-reconfigure tzdata

It will ask your living town and will setup automatically your computer time and timezone.

Notice: the timezone data are stored in these files /etc/timezone and /etc/localtime

Discussion

Abdullah Kerem öğeAbdullah Kerem öğe, 2009/05/21 10:48

For manuel change ;

      # Update the timezone
      write $AREA/$ZONE to /etc/timezone
      # Then copy timezone file as localtime
      exec(sudo rm -f /etc/localtime && sudo cp -f /usr/share/zoneinfo/$AREA/$ZONE/ etc/localtime)

that is it.

Enter your comment
 
 
 

Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki