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 » Change PutTime from GMT??

Post new topic  Reply to topic
 Change PutTime from GMT?? « View previous topic :: View next topic » 
Author Message
JAdams
PostPosted: Tue Sep 24, 2002 5:06 am    Post subject: Change PutTime from GMT?? Reply with quote

Apprentice

Joined: 11 Jul 2002
Posts: 47
Location: Lakeland, FL

Hi,

It is possible to change the PutTime on the MQMD to be the time of the system clock instead of using GMT? It is causing some headaches. Nothing we can't deal with. It would just be nice if the puttime matched the system clock time.

thanks,
Jason
_________________
Jason Adams
IBM Certified Specialist MQSeries
Back to top
View user's profile Send private message
dgolding
PostPosted: Tue Sep 24, 2002 7:21 am    Post subject: Reply with quote

Yatiri

Joined: 16 May 2001
Posts: 668
Location: Switzerland

You can replace it with whatever you're happy with.....BUT...

what happens when you send to a machine in another time zone - your problems will then multiply, as you try to figure out which time zone to use for the message that is in the queue, local or remote - has this message sat here for an hour, or has it just arrived?.....

....so basically, if you are NEVER going to send to a machine outside of your neck of the woods, then fine....otherwise, proceed at your peril

(It's not called GMT anymore it's UTC or Zulu time for airlines )
Back to top
View user's profile Send private message Visit poster's website
petmor
PostPosted: Thu Mar 06, 2003 12:06 am    Post subject: Changing PutTime to localtime Reply with quote

Apprentice

Joined: 20 Jun 2002
Posts: 45
Location: Pasadena, CA

I agree with dgolding about the effects you'll deal with if you plan to place these results across time zones. But to deal with the times when I want local without any extra thought, I apply a program I wrote which I pipe to the output of a queue-browser like the '...bcg.c' program which comes with MQ for AIX. I look for 'PutDate' and call my converter when encounter it. I keep Greenwich in my output. Sample output is ...

PutApplType : '6'
PutApplName : ' '
PutDate : '20030306' PutTime : '08020920'
PutDate : '20030306' PutTime : '00020920' PDT
ApplOriginData : ' '

Compatibility with different timezones is achieved with ...

time(&ltime);
ntime = localtime(&ltime);
tzHrs = timezone / 3600; // hrs difference Greenwich & local

It works for me, and is non-obtrusive.

Peter
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Change PutTime from GMT??
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.