Author |
Message
|
jcaron |
Posted: Fri Jan 13, 2006 11:21 am Post subject: Queue Creation Time vs. System Time |
|
|
Apprentice
Joined: 02 Jun 2005 Posts: 30 Location: Indianapolis, IN
|
I'm running into a strange problem that maybe some of you have noticed before... We're running MQ 5.30 CSD10 under Red Hat Linux AS 2.1 - our system time is correct, set to EST, and kept in sync via NTP. When creating a queue, the queue creation time always shows as 5 hours less (our GMT difference) than the system time. Our system clock is not in GMT and 'timeconfig' in linux confirms this, however, it's as if MQ is convinced the system time IS GMT and subtracts the time zone difference anyway. However, any message put to a queue in this environment gets the system time as its put date/time. Does anyone have any thoughts or is this more of a PMR-worthy type of issue? |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Jan 13, 2006 11:51 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I think this is working as documented. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
jcaron |
Posted: Fri Jan 13, 2006 12:08 pm Post subject: |
|
|
Apprentice
Joined: 02 Jun 2005 Posts: 30 Location: Indianapolis, IN
|
Jeff - thanks for your reply - Do you have any idea where would such silly behavior be documented?? I searched all of the IBM redbooks I have for "Creation Time" and found the following in the application programming guide which would seem to contradict what you've suggested:
===============================================
CreationTime (MQCHAR8)
This is the time when the queue was created. The format of the time is HH.MM.SS using the 24-hour clock, with a leading zero if the hour is less than 10 (for example 09.10.20).
- On z/OS, the time is Greenwich Mean Time (GMT), subject to the system clock being set accurately to GMT.
- In other environments, the time is local time.
- On OS/400, the creation time of a queue may differ from that of the underlying operating system entity (file or userspace) that represents the queue.
=============================================== |
|
Back to top |
|
 |
wschutz |
Posted: Fri Jan 13, 2006 12:20 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
So you're saying if the wallclock says NOON, and you're in New York, and you put a message, the PutTime in the message is 12:00:00 or 17:00:00? _________________ -wayne |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Jan 13, 2006 12:27 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What are you using to display the queue creation time? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
jcaron |
Posted: Fri Jan 13, 2006 12:40 pm Post subject: |
|
|
Apprentice
Joined: 02 Jun 2005 Posts: 30 Location: Indianapolis, IN
|
wschutz - Neither, first we're dealing with Queue Creation Time, not the PutTime of the message, the message times are correctly displaying as local time. If the NYC wall clock and system clock say 12:00, the Queue Creation Time displays as 07:00.
Jeff - I was using the MQ Explorer tool provided by IBM under windows. However, your question reminded me that this is not the only way to see this info, so I tried 'display queue(xxx)' at the command line on the queue manager in runmqsc and sure enough, the time is recorded correctly. Must be something in the way MQ Explorer converts the time locally when displaying. Again, thanks for your help. |
|
Back to top |
|
 |
wschutz |
Posted: Fri Jan 13, 2006 12:53 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
the message times are correctly displaying as local time. |
I assume you're looking at the message using the Explorer as well, as the PutTime in the MQMD should be UTC (aka GMT) _________________ -wayne |
|
Back to top |
|
 |
jcaron |
Posted: Fri Jan 13, 2006 1:22 pm Post subject: |
|
|
Apprentice
Joined: 02 Jun 2005 Posts: 30 Location: Indianapolis, IN
|
Wayne - yup, I was also viewing the msg time in Explorer. |
|
Back to top |
|
 |
|