Author |
Message
|
aix_mqm |
Posted: Wed Dec 19, 2007 11:36 pm Post subject: messages are going with GMT time stampt via MQPUT |
|
|
Newbie
Joined: 19 Dec 2007 Posts: 2 Location: INDIA
|
Hi,
we are using MQ version 6.0.2 and AIX version 5.3 with TL 5.3 and ML 5.3.
we are facing problem of timestapm, while puting messages on MQ, timestamp is attached as GMT.
the server on which the MQ Manager is installed is having IST.
please advise us how can we reslolbe this? |
|
Back to top |
|
 |
David.Partridge |
Posted: Thu Dec 20, 2007 12:18 am Post subject: |
|
|
 Master
Joined: 28 Jun 2001 Posts: 249
|
They are supposed to have the timestamp in GMT so times across multipple timezones can be matched and reconciled. _________________ Cheers,
David C. Partridge |
|
Back to top |
|
 |
aix_mqm |
Posted: Thu Dec 20, 2007 2:39 am Post subject: |
|
|
Newbie
Joined: 19 Dec 2007 Posts: 2 Location: INDIA
|
Hi David.Partridge,
the problem is that to process the message we need the timestamp in IST,
but as per my problem i am getting the timestamp of message as GMT.
so there is difference of 5:30 Hrs.
now when i check the timestamp of message and compaire in my C++ code i am getting time difference is huge. so my further calculation fails.
please advise on this. |
|
Back to top |
|
 |
Nigelg |
Posted: Thu Dec 20, 2007 3:26 am Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
There is a fairly obvious solution to that problem.... _________________ MQSeries.net helps those who help themselves.. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Dec 20, 2007 4:12 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
aix_mqm wrote: |
Hi David.Partridge,
the problem is that to process the message we need the timestamp in IST,
but as per my problem i am getting the timestamp of message as GMT.
so there is difference of 5:30 Hrs.
now when i check the timestamp of message and compare in my C++ code i am getting time difference is huge. so my further calculation fails.
please advise on this. |
So what is preventing you to translate a GMT timestamp to an IST timestamp before comparing? or if you are using XMS/JMS (RFH header) adding an ISTTimestamp property value pair?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
JLRowe |
Posted: Thu Dec 20, 2007 6:33 am Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
aix_mqm wrote: |
Hi David.Partridge,
the problem is that to process the message we need the timestamp in IST,
but as per my problem i am getting the timestamp of message as GMT.
so there is difference of 5:30 Hrs.
now when i check the timestamp of message and compaire in my C++ code i am getting time difference is huge. so my further calculation fails.
please advise on this. |
Just change the clock on your computer to GMT, then the comparisons will work.
However, please do remember not to come in to work at 04:00 - it took me a while to remember this. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Dec 20, 2007 6:35 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
JLRowe wrote: |
Just change the clock on your computer to GMT, then the comparisons will work.
However, please do remember not to come in to work at 04:00 - it took me a while to remember this. |
I dunno. It's not a bad way to avoid meetings... "Well, boss. I was at the office at 09:00, by the clock on my computer... and I left at 5:30..." _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
David.Partridge |
Posted: Thu Dec 20, 2007 7:26 am Post subject: |
|
|
 Master
Joined: 28 Jun 2001 Posts: 249
|
Then use gmtime() in your code rather than localtime().
There's no way that you can persuade MQ to use anything but UTC (aka GMT) for its timestamps. _________________ Cheers,
David C. Partridge |
|
Back to top |
|
 |
|