AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Timezone setting problem ??

    Posted Mon November 17, 2008 04:46 AM

    Originally posted by: chandru0078


    Dear Experts

    Can anyone guide me on setting timezone for aix 5.3 servers? Actually our server located at malaysia(GMT +8).by default unix os will be set with " WAUST " time zone.The problem is our application logs shows one hours upfront timing stamp for example when the user perform transaction at 18:00 but the logs shows 19:00 time stamp. The time are sync with our located time expect the tz is WASUT. my question is there any specific time for Malaysia or Singapore ? or can i leave the timezone empty ?

    After reconfigure timezone setting as below the time different problem was solved.anyway i dont know what is below setting refering to? What is "Etc" "/G" "MT" and "-8BST" refering to?

    default setting
    Mon Nov 17 17:25:55 WAUST 2008

    After change to new setting
    Mon Nov 17 17:45:03 Etc 2008

    Entry Fields
    • Standard Time ID(only alpahabets) Etc
    • Standard Time Offset from CUT(-HH:MM:SS) [/G]
    Day Light Savings Time ID(only alpahabets) MT
    Day Light Savings Time Offset from CUT(-HH:MM: -8BST
    SS)
    Start Daylight Savings Day(Jn]) [
    Start Daylight Savings Time(HH:MM:SS) []
    Stop Daylight Savings Day(Jn]) [
    Stop Daylight Savings Time(HH:MM:SS) []
    #AIX-Forum


  • 2.  Re: Timezone setting problem ??

    Posted Mon November 17, 2008 07:10 AM

    Originally posted by: j.gann


    looks like a corrupt TZ setting in /etc/environment to me since "Etc" is no valid timezone abbreviation. do a "grep TZ /etc/environment" and restore the file from a backup if it shows this "Etc..." stuff.

    If only this one application has its time off, an individually set TZ variable might best and you can leave the system default like it was before.
    #AIX-Forum


  • 3.  Re: Timezone setting problem ??

    Posted Mon November 17, 2008 06:26 PM

    Originally posted by: SystemAdmin


    Can you "cat /etc/environment" and show us the output. The easy way to set your timezone is to use smit (System Environments); however, this limits you to the default timezones.

    1. Find out what is the correct timezone abbreviation for Malaysia; e.g. MST ?

    2. As root, change the TZ variable in /etc/environment to:

    TZ=MST-8

    3. Save, start a new session, and check the date. You need a new session, as the
    Timezone only gets set at login.
    #AIX-Forum


  • 4.  Re: Timezone setting problem ??

    Posted Tue November 18, 2008 05:13 AM

    Originally posted by: chandru0078


    Dear friends

    According to below link malaysia fall under VST 8:00 timezone .Any comment ?

    http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/rrun_svr_timezones.html
    #AIX-Forum


  • 5.  Re: Timezone setting problem ??

    Posted Tue November 18, 2008 05:39 PM

    Originally posted by: SystemAdmin


    According to timeanddate.com your timezone abbreviation is MYT. As a test add the following line to your .profile file.

    TZ=MYT-8

    Save the .profile, logoff, logon, and run date. Is the time and date correct? If it is, then edit /etc/environment to contain the same TZ.
    #AIX-Forum