|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Change PutTime from GMT?? |
« View previous topic :: View next topic » |
Author |
Message
|
JAdams |
Posted: Tue Sep 24, 2002 5:06 am Post subject: Change PutTime from GMT?? |
|
|
 Apprentice
Joined: 11 Jul 2002 Posts: 47 Location: Lakeland, FL
|
Hi,
It is possible to change the PutTime on the MQMD to be the time of the system clock instead of using GMT? It is causing some headaches. Nothing we can't deal with. It would just be nice if the puttime matched the system clock time.
thanks,
Jason _________________ Jason Adams
IBM Certified Specialist MQSeries |
|
Back to top |
|
 |
dgolding |
Posted: Tue Sep 24, 2002 7:21 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
You can replace it with whatever you're happy with.....BUT...
what happens when you send to a machine in another time zone - your problems will then multiply, as you try to figure out which time zone to use for the message that is in the queue, local or remote - has this message sat here for an hour, or has it just arrived?.....
....so basically, if you are NEVER going to send to a machine outside of your neck of the woods, then fine....otherwise, proceed at your peril
(It's not called GMT anymore it's UTC or Zulu time for airlines ) |
|
Back to top |
|
 |
petmor |
Posted: Thu Mar 06, 2003 12:06 am Post subject: Changing PutTime to localtime |
|
|
Apprentice
Joined: 20 Jun 2002 Posts: 45 Location: Pasadena, CA
|
I agree with dgolding about the effects you'll deal with if you plan to place these results across time zones. But to deal with the times when I want local without any extra thought, I apply a program I wrote which I pipe to the output of a queue-browser like the '...bcg.c' program which comes with MQ for AIX. I look for 'PutDate' and call my converter when encounter it. I keep Greenwich in my output. Sample output is ...
PutApplType : '6'
PutApplName : ' '
PutDate : '20030306' PutTime : '08020920'
PutDate : '20030306' PutTime : '00020920' PDT
ApplOriginData : ' '
Compatibility with different timezones is achieved with ...
time(<ime);
ntime = localtime(<ime);
tzHrs = timezone / 3600; // hrs difference Greenwich & local
It works for me, and is non-obtrusive.
Peter |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|