|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to change GMT hour inside a message ? |
« View previous topic :: View next topic » |
Author |
Message
|
poulter90 |
Posted: Wed Oct 08, 2008 7:50 am Post subject: How to change GMT hour inside a message ? |
|
|
Apprentice
Joined: 31 Dec 2007 Posts: 36
|
Hi ,
The specified hour inside the message is specified as GMT , does anybody know a way to change it to French hour (GMT + 2 for summer or GMT +1 in Winter) ?
Thank you for your help . |
|
Back to top |
|
 |
dkeister |
Posted: Wed Oct 08, 2008 9:40 am Post subject: |
|
|
Disciple
Joined: 25 Mar 2002 Posts: 184 Location: Purchase, New York
|
As I understand it (using Windows as reference point), the GMT calculation is based on the local time of the machine hosting the Queue Manger. So, if you are putting a message onto a queue hosted by a Queue Manger on a machine in Paris, the MQMD PutDate and PutTime are converted to GMT based on the time (Standard or DST) on the Paris machine. So, you don't have to do anything and the correct GMT calculation will take place.
You can provide your own values by setting them in the MQMD prior to a MQPUT and setting the MQPMO_SET_ALL_CONTEXT field in the PMO. _________________ Dean Keister |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Oct 08, 2008 5:57 pm Post subject: Re: How to change GMT hour inside a message ? |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
poulter90 wrote: |
Hi ,
The specified hour inside the message is specified as GMT , does anybody know a way to change it to French hour (GMT + 2 for summer or GMT +1 in Winter) ?
Thank you for your help . |
If you google I'm sure there is a timezone conversion routine somewhere on the net that will fit your programing language.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
gbaddeley |
Posted: Wed Oct 08, 2008 7:19 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
You want to do the conversion on MQMD PutDate & PutTime after getting the msg? If yes, it is purely an application programming issue, and nothing to do with MQ itself.
If your apps are all in the same time zone and you want to deal with local time, it is probably better to have the applications include it as part of the message data. _________________ Glenn |
|
Back to top |
|
 |
poulter90 |
Posted: Wed Oct 08, 2008 11:26 pm Post subject: |
|
|
Apprentice
Joined: 31 Dec 2007 Posts: 36
|
Hi everybody ,
Thanks very much for your help. |
|
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
|
|
|
|