webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Changing EST to GMT

  • 1.  Changing EST to GMT

    Posted Sun February 13, 2005 03:37 AM

    Hi

    We happen to notice that in one of your clients machine the time setting in a config file generated from webMethods show as “(07:00:10 EST)”. The same file is generated as “(07:00:10 GMT)” in other machines.

    I was wondering where I could change the timezone information

    Thanks and regards

    Thahir


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Changing EST to GMT

    Posted Mon February 14, 2005 09:29 AM

    Is it coming from the server clock?


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Changing EST to GMT

    Posted Mon February 14, 2005 04:24 PM

    Thahir,

    What OS is this occurring on? webMethods just pulls the timezone information from the OS (via the JVM). The following java code will display timezone and time info, perhaps run it on both machines and verify the differences (this will take webMethods out of the picture):

    import java.util.*;
    
    public class gettime
    {
    public static void main(String[] args)
    {
    
    System.out.println(TimeZone.getDefault().getID());
    System.out.println("Use Daylight "+ TimeZone.getDefault().useDaylightTime());
    Calendar rightNow = Calendar.getInstance();
    System.out.println("HOUR " + rightNow.get(Calendar.HOUR_OF_DAY));
    System.out.println("MINUTE " + rightNow.get(Calendar.MINUTE));
    
    System.exit(0);
    
    }
    }
    

    James…


    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Changing EST to GMT

    Posted Mon February 21, 2005 12:04 AM

    To change the timezone for the JVM, you could do the following:

    *** UNIX
    Add the property “-Duser.timezone=GMT+10:00” to the shell script → server.sh.
    E.g.
    JVM_TZ=GMT+10:00
    export JVM_TZ

    … run Integration Server

    ${JAVA_RUN} -DWM_HOME=${WM_HOME} -Duser.timezone=${JVM_TZ} -classpath ${CLASSPATH} ${IS_PROXY_MAIN} ${IS_DIR}/bin/ini.cnf $ ${PREPENDCLASSES_SWITCH} ${PREPENDCLASSES} ${APPENDCLASSES_SWITCH} ${APPENDCLASSES} ${ENV_CLASSPATH_SWITCH} ${SAVED_CP}: $*

    *** Windows
    Add the property “-Duser.timezone=GMT+10:00” to the batch file → server.bat and run from the command line prompt.
    If it is on NT server and is registered as a service, then it is a little more trickier - you have to hack the registry to add this parameter to the JVM augments (as changing the server.bat will have no effect).

    Nino.


    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Changing EST to GMT

    Posted Tue February 22, 2005 11:09 AM

    That’s a good way to do it at an IS basis. You could also change your .profile, but that would apply it to all instances running on that machine running under your application account.

    There is a way (flow svc) to change timezones in developer if you just want to validate application times against a cerain timezone (I suggest GMT). That way you can keep your IS time as whatever you want, but then have a common (GMT) timezone to validate against.


    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: Changing EST to GMT

    Posted Tue March 01, 2005 12:59 AM

    Thank You guys.

    You were just great

    :slight_smile:

    Thahir


    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: Changing EST to GMT

    Posted Tue March 01, 2005 03:36 PM

    Hi,
    our server is running as windows NT service. I tried to look through the registry setting but couldn’t tell which setting need change. Can you let me know where in registry I can apply the timezone setting?
    Thanks
    Alexi


    #webMethods
    #Integration-Server-and-ESB


  • 8.  RE: Changing EST to GMT

    Posted Wed May 04, 2005 05:21 PM

    Hi,

    I have an issue here.

    The Server is running in EDT… When I get the date from JVM using the client code, it is correct and in EDT… pub.date.getCurrentDate returns correct date time in EDT.

    Now when I get a document, I see two different dates… One in Doc Tracker (this is a broker document)… which is being sent… and A different Date in IS (in Pipeline)…

    It looks as if IS is thinking that the date in document is GMT, and it is resetting it to EDT… (but the date I am receiving is in EDT)… How do we control date on Broker?


    #Integration-Server-and-ESB
    #webMethods


  • 9.  RE: Changing EST to GMT

    Posted Tue May 13, 2008 09:20 AM

    Hi All,

    I found this subject relative to my issue.

    I have a customer who is sending the datetime in CTT (China Taiwan Time). But my system requires it to be in GMT format.

    Problem here is, though the datetime is in CTT format WM is considering that as EDT format and accordingly it is converting it to GMT format.

    Is there any service or possibility to give one timezone as input and get the datetime in another time zone.

    Thanks in advance for the responses.

    Best Regards,
    Krishna Mohan


    #Integration-Server-and-ESB
    #webMethods