Print

System displays incorrect time zone for the default zone

While switching from daylight saving-time to the standard time, or from standard time to daylight-saving time, the system might display the time zone as US/Pacific-New for the default zone, irrespective of the time zone that you configure in the system.

Proposed Solution 1: Changing the localtime information

Procedure

  1. Select your country, from /usr/share/zoneinfo.
    noteNote:

    Depending on the distribution of the system, the location of zoneinfo might vary.

  2. Use the command $ ln -sf /usr/share/zoneinfo/your time zone /etc/localtime to link localtime to your city or to any city in your time zone, where your time zone is the time zone you want to configure. For example, US/Pacific.

Proposed Solution 2: Setting the TZ environment variable

Procedure

  1. In the /etc/profile.d directory, create a shell script with the command export TZ= “your time zone”, where your time zone is the time zone you want to configure. For example, US/Pacific.
    noteNote:

    If your system does not support the /etc/profile.d directory, add the export TZ command to the /etc/profile initialization script.

  2. Restart the vpms service by entering the /sbin/service vpms restart command.