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 IBM MQ Support » MQMessage TimeZone

Post new topic  Reply to topic
 MQMessage TimeZone « View previous topic :: View next topic » 
Author Message
VijiS
PostPosted: Mon May 16, 2005 8:04 am    Post subject: MQMessage TimeZone Reply with quote

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
View user's profile Send private message
EddieA
PostPosted: Mon May 16, 2005 10:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Michael Dag
PostPosted: Tue May 17, 2005 6:15 am    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

Moving to General Support
_________________
Michael



MQSystems Facebook page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
fjb_saper
PostPosted: Tue May 17, 2005 6:36 pm    Post subject: Reply with quote

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

MQSeries.net Forum Index » General IBM MQ Support » MQMessage TimeZone
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.