|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQMessage TimeZone |
« View previous topic :: View next topic » |
Author |
Message
|
VijiS |
Posted: Mon May 16, 2005 8:04 am Post subject: MQMessage TimeZone |
|
|
Newbie
Joined: 12 Apr 2005 Posts: 5
|
Hi,
I need to convert the time zone displayed.
The code currently has -
MQMessage mqm = new MQMessage();
mqm.msgTime = new Date(inCopy.readLong()).toString();
The message displays the EST but the time is displayed in GMT, and the zone is incorrect. |
|
Back to top |
|
 |
EddieA |
Posted: Mon May 16, 2005 10:31 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Firstly, wrong forum. This is not News/Updates.
Secondly, TimeStamps on MQ messages are always GMT. (Well, actually UCT, but for all intents and purposes, they are the same). The display shows you the timezone that your machine is set to, and it doesn't know that the time you have fed it is UCT. So, if you want the time in EST, you will have to convert it.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
Michael Dag |
Posted: Tue May 17, 2005 6:15 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
|
Back to top |
|
 |
fjb_saper |
Posted: Tue May 17, 2005 6:36 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Your assumption about message time being a long is not accurate.
On the message the information is in form
hhmmss UTC (or GMT)
Enjoy  |
|
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
|
|
|
|