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 » WebSphere Message Broker (ACE) Support » Timezone problem

Post new topic  Reply to topic
 Timezone problem « View previous topic :: View next topic » 
Author Message
Vijji
PostPosted: Tue Aug 07, 2007 7:48 am    Post subject: Timezone problem Reply with quote

Voyager

Joined: 30 Aug 2005
Posts: 83

Hi ,

My Environment is MBv5.0 CSD5,MQ5.3 and Windows2000 .I am getting problem with TimeZone .

Actually I am getting input message as XML in MRM domain.XML souce messageset contains a field with xsd:Time datatype.The target messageset format is also XML and had a field of datatype xsd:Time.Here I'm doing some manipulations on the incoming Time field and mapping it to the target Time field.

Quote:
The input message timefield format is like
19:00:00-05:00

The Outputmesage format which I'm getting is 00:00:00-04:00


But expected output is 00:00:00-05:00

Why I'm getting the Timezone difference?

Thanks in Advance,
Vijji.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Tue Aug 07, 2007 7:39 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

which timezone is ur broker running???

mqsiservice -t
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Vijji
PostPosted: Tue Aug 07, 2007 9:09 pm    Post subject: Reply with quote

Voyager

Joined: 30 Aug 2005
Posts: 83

Hi Akanksha,

Thanks for ur reply.My broker is running on EST.One more thing when i'm mapping directly with out any manipulations i'm getting correct timezone.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Tue Aug 07, 2007 9:25 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Quote:
MBv5.0 CSD5,MQ5.3
you need an instant upgrade

can u paste your eSQL code here
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Vijji
PostPosted: Wed Aug 08, 2007 12:34 am    Post subject: Reply with quote

Voyager

Joined: 30 Aug 2005
Posts: 83

Here is my esql code
Code:
SET OutputRoot.MRM.endTime = SUBSTRING(CAST(InputRoot.MRM.beginTime AS CHAR) FROM 7 FOR 8);


Which upgrade is needed for this?
Back to top
View user's profile Send private message
AkankshA
PostPosted: Wed Aug 08, 2007 12:44 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Quote:
Quote:
MBv5.0 CSD5,MQ5.3

you need an instant upgrade


5.3 is going out of support... and CSD5 days are way back too....

Quote:
Code:

SET OutputRoot.MRM.endTime = SUBSTRING(CAST(InputRoot.MRM.beginTime AS CHAR) FROM 7 FOR 8)


this statement would return endTime as char element... that too those last 8 digits... are u casting it back ?? how u creating the timestamp back?? are u providing GMTTIMESTAMP option there??

doesn't gv me a claer picture of happenings there.. may be some more information about the manipulations u r doing with this might help me in helping u ....
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
srikanth av
PostPosted: Wed Aug 08, 2007 10:54 am    Post subject: Reply with quote

Apprentice

Joined: 30 Jun 2005
Posts: 37

Hi All,
I am friend of Vijji and this is the code she has written:

She has modified the code and written like this according to our requirement

DECLARE BeginTime TIME;
DECLARE cBeginTime CHAR;


SET BeginTime = InputRoot.MRM.beginTime;

SET cBeginTime = CAST(BeginTime AS CHAR);

EVAL('SET OutputRoot.'||DATETime||'BeginTime'||Cast(I as Char)||'='||cBeginTime);

Here DATETime and I are Variables which are computed before.
Back to top
View user's profile Send private message Send e-mail
Vijji
PostPosted: Thu Aug 09, 2007 6:28 am    Post subject: Reply with quote

Voyager

Joined: 30 Aug 2005
Posts: 83

I'm still stuck with this problem.Please help me out.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Aug 09, 2007 6:33 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Can you be clear about what you are trying to accomplish?

Also, please consider using {} instead of EVAL.

It looks like you're trying to do some stuff with dates/times, but you're using character variables.
_________________
I am *not* the model of the modern major general.
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 » WebSphere Message Broker (ACE) Support » Timezone problem
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.