ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » messages are going with GMT time stampt via MQPUT

Post new topic  Reply to topic
 messages are going with GMT time stampt via MQPUT « View previous topic :: View next topic » 
Author Message
aix_mqm
PostPosted: Wed Dec 19, 2007 11:36 pm    Post subject: messages are going with GMT time stampt via MQPUT Reply with quote

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
View user's profile Send private message Yahoo Messenger
David.Partridge
PostPosted: Thu Dec 20, 2007 12:18 am    Post subject: Reply with quote

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
View user's profile Send private message
aix_mqm
PostPosted: Thu Dec 20, 2007 2:39 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Nigelg
PostPosted: Thu Dec 20, 2007 3:26 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Dec 20, 2007 4:12 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
JLRowe
PostPosted: Thu Dec 20, 2007 6:33 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Thu Dec 20, 2007 6:35 am    Post subject: Reply with quote

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
View user's profile Send private message
David.Partridge
PostPosted: Thu Dec 20, 2007 7:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » messages are going with GMT time stampt via MQPUT
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.