Find the answer to your Linux question:
Results 1 to 3 of 3
Hi I am changing the timezones of some 20 virtual servers using the command below: >cp /usr/share/zoneinfo/Africa/Johannesburg /etc/localtime it seems to work, since when I entere date I see SAST ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2013
    Location
    Manila
    Posts
    17

    Question GNU/Linux Changing Timezone


    Hi I am changing the timezones of some 20 virtual servers using the command below:

    >cp /usr/share/zoneinfo/Africa/Johannesburg /etc/localtime

    it seems to work, since when I entere date I see SAST TZ

    But the problem is when I check file /etc/sysconfig/clock, I still see "Americas/Los Angeles" for the timezone. This was the previous TZ setting.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,752
    The /etc/sysconfig/clock file is the default set when the system was installed. It is overridden by the localtime/zoneinfo file. You can update the /etc/sysconfig/clock file if you want.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Feb 2013
    Location
    Manila
    Posts
    17

    Red face

    Quote Originally Posted by Rubberman View Post
    The /etc/sysconfig/clock file is the default set when the system was installed. It is overridden by the localtime/zoneinfo file. You can update the /etc/sysconfig/clock file if you want.
    The /etc/sysconfig/clock is still set at the old TZ. I guess it didn't automatically change, manual change is needed... Will change it now, tnx!

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •