How to change the date of Linux to UTC/GMT +1?

68,875

The normal way is to set your timezone. There are a bunch of files stored by region in the following directory:

/usr/share/zoneinfo

Take a look and find the one which matches your region. Then you have to create a symlink from /etc/localtime:

sudo rm /etc/localtime
sudo ln -s /usr/share/zoneinfo/Europe/London /etc/localtime
Share:
68,875

Related videos on Youtube

André
Author by

André

Updated on September 18, 2022

Comments

  • André
    André over 1 year

    I need to change the date of my system. I'm running a Linux CentOS 5.6.

    # date +%Z
    UTC
    # date
    Thu Oct  6 11:42:45 UTC 2011
    

    How do I change the hour to be UTC/GMT +1?

  • bebbo
    bebbo about 8 years
    Europe/London is not UTC+1
  • xetra11
    xetra11 over 5 years
    I did as you described but date still yields the old time? What should be done to sync date with /etc/localtime ?