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 » IBM MQ Installation/Configuration Support » Time/Date on messages in queue are about 4 hours ahead.

Post new topic  Reply to topic
 Time/Date on messages in queue are about 4 hours ahead. « View previous topic :: View next topic » 
Author Message
kodiakk
PostPosted: Tue Jul 05, 2016 7:44 am    Post subject: Time/Date on messages in queue are about 4 hours ahead. Reply with quote

Acolyte

Joined: 04 Dec 2007
Posts: 58
Location: Jacksonville, Fl.

Good morning!
I'm using MQ version 7.0.1.6, and I'm finding that messages being placed into our queues are 4 hours ahead of local time. For example, today, a message was placed in one of our *.ERROR queues, and it shows a time stamp of July 5, 2016, 2:19:06 PM. The ACTUAL time, of course, was 10:19 AM, which matched the time on the server.
Obviously, this has to do with the way MQ was installed on this system, and someone didn't account for us not being on GMT...
Where can I find the setting responsible for this? Do I have to re-install MQ in order to fix it?
It's becoming problematic, now, after years of being this way, because we are now trying to locate specific pieces of data within the messages for problem determination purposes, and getting an accurate time for the message would expedite matter significantly.

Obviously, it's not hard to do the math and subtract 4 from the current time, but that won't really hold up under an audit, so we'd like to change this parameter if at all possible.

Thanks in advance for any help that you can provide.
_________________
"Don't take life too seriously... you won't get out of it alive..."
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jul 05, 2016 7:50 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I'm guessing you're 4 hours behind GMT.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
kodiakk
PostPosted: Tue Jul 05, 2016 7:52 am    Post subject: Reply with quote

Acolyte

Joined: 04 Dec 2007
Posts: 58
Location: Jacksonville, Fl.

Eastern time zone, yes.
_________________
"Don't take life too seriously... you won't get out of it alive..."
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Jul 05, 2016 7:56 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

so everything is fine then?
MQ by design uses GMT/UTC+0 for all message timestamps.
Very useful when sending data around the world.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
kodiakk
PostPosted: Tue Jul 05, 2016 8:00 am    Post subject: Reply with quote

Acolyte

Joined: 04 Dec 2007
Posts: 58
Location: Jacksonville, Fl.

Well... fine, in that it's doing GMT+0 but we'd really like GMT-4... that way, the MQ item can correctly correspond with the transaction we're searching for... Auditors will look at the 4 hour time difference and ask "How do you know that's the right one? It doesn't correlate with the time of the transaction."
Of course, at that point, we'd have to explain GMT+0 vs. GMT-4... and auditors don't like explanations.
_________________
"Don't take life too seriously... you won't get out of it alive..."
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jul 05, 2016 8:01 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Change whatever you're using to show messages to convert GMT to EDT...
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
kodiakk
PostPosted: Tue Jul 05, 2016 8:02 am    Post subject: Reply with quote

Acolyte

Joined: 04 Dec 2007
Posts: 58
Location: Jacksonville, Fl.

I'm just using the BROWSE MESSAGE function in MQ... that's why I'm asking to see if there's a setting I can change within MQ itself.
_________________
"Don't take life too seriously... you won't get out of it alive..."
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jul 05, 2016 8:04 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You can't convert the MQMD to use a different timezone.

You can modify and recompile amqsbcg...
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Jul 05, 2016 9:35 am    Post subject: Re: Time/Date on messages in queue are about 4 hours ahead. Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9396
Location: US: west coast, almost. Otherwise, enroute.

kodiakk wrote:
Obviously, it's not hard to do the math and subtract 4 from the current time, but that won't really hold up under an audit, so we'd like to change this parameter if at all possible.

Thanks in advance for any help that you can provide.

GMT won't pass audit?? Really. Your auditors told you this? Does your organization use any DBs?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue Jul 05, 2016 5:55 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2494
Location: Melbourne, Australia

kodiakk wrote:
Well... fine, in that it's doing GMT+0 but we'd really like GMT-4... that way, the MQ item can correctly correspond with the transaction we're searching for... Auditors will look at the 4 hour time difference and ask "How do you know that's the right one? It doesn't correlate with the time of the transaction."
Of course, at that point, we'd have to explain GMT+0 vs. GMT-4... and auditors don't like explanations.

The simple explanation to the auditors is that MQ stores MQMD putdate/time stamps in GMT. As do many other s/w products....
The only way around this is to set the system clock to local time and set the system time zone to +0. Of course this will affect nearly everything on the system, and play havoc with interfacing systems.
_________________
Glenn
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Tue Jul 05, 2016 6:17 pm    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

Kodiakk,

Surely the only way a timestamp means anything is to have a fixed point of reference. I would have thought the auditors would much prefer that. Otherwise seeing 6pm in a message is meaningless since it is always 6pm (the hour of) somewhere in the world. A useful thing to remember if you are trying to work out whether it is too early for a beer.

The thing to do is to change the way the message is displayed rather than the content of the message. Our MO71 product, for example, allows you to display these times, when you browse a queue, in local time if you prefer.

Cheers,

Paul.
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
smdavies99
PostPosted: Tue Jul 05, 2016 10:12 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

kodiakk wrote:

Of course, at that point, we'd have to explain GMT+0 vs. GMT-4... and auditors don't like explanations.


In my experience, Auditors don't like explanations that can't be backed up with facts.
I am sure the MQ docs have an explanation of this.
Just point the auditors at that and say,
"Thats the way the product works."
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Jul 06, 2016 6:13 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9396
Location: US: west coast, almost. Otherwise, enroute.

kodiakk wrote:
... auditors don't like explanations.

This https://www.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.ref.dev.doc/q097640_.htm
[url] says this:
Quote:
Greenwich Mean Time (GMT) is used for the PutDate and PutTime fields, subject to the system clock being set accurately to GMT.

No other explanation needed.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
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 » IBM MQ Installation/Configuration Support » Time/Date on messages in queue are about 4 hours ahead.
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.