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 » IIB 9 timestamp problem - solved

Post new topic  Reply to topic
 IIB 9 timestamp problem - solved « View previous topic :: View next topic » 
Author Message
marko.pitkanen
PostPosted: Thu Jan 07, 2016 7:37 am    Post subject: IIB 9 timestamp problem - solved Reply with quote

Chevalier

Joined: 23 Jul 2008
Posts: 440
Location: Jamsa, Finland

Hi,

We noticed for few days(27.12.2015 - 1.1.2016) weird behavior of following code
Code:
CAST(CURRENT_GMTTIMESTAMP AS CHARACTER FORMAT 'YYYYMMddHHmmssSSS')

It produced for example value 20161231225214889

Server is located in Finland.

Do you make up any explanations for the behavior?


Last edited by marko.pitkanen on Fri Jan 08, 2016 12:36 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Thu Jan 07, 2016 8:01 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

what's weird about the result?
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
adubya
PostPosted: Thu Jan 07, 2016 8:05 am    Post subject: Reply with quote

Partisan

Joined: 25 Aug 2011
Posts: 377
Location: GU12, UK

If the system clock is correct then returning a date of 31st December 2016 as the GMT representation would seem wrong.
Back to top
View user's profile Send private message Send e-mail
marko.pitkanen
PostPosted: Thu Jan 07, 2016 8:51 am    Post subject: Reply with quote

Chevalier

Joined: 23 Jul 2008
Posts: 440
Location: Jamsa, Finland

mqjeff wrote:
what's weird about the result?


Date & Time corresponds to the event, but seems that the year was converted too early to 2016 and so event was stored to the far future.

--
Marko
Back to top
View user's profile Send private message Visit poster's website
maurito
PostPosted: Thu Jan 07, 2016 11:09 pm    Post subject: Reply with quote

Partisan

Joined: 17 Apr 2014
Posts: 358

marko.pitkanen wrote:
mqjeff wrote:
what's weird about the result?


Date & Time corresponds to the event, but seems that the year was converted too early to 2016 and so event was stored to the far future.

--
Marko


Correct. You should be using yyyy for the year rather than YYYY.
http://www-01.ibm.com/support/knowledgecenter/SSKM8N_8.0.0/com.ibm.etools.mft.doc/ak05616_.htm?lang=en
point 6
Back to top
View user's profile Send private message
marko.pitkanen
PostPosted: Fri Jan 08, 2016 12:32 am    Post subject: Reply with quote

Chevalier

Joined: 23 Jul 2008
Posts: 440
Location: Jamsa, Finland

Thanks maurito!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IIB 9 timestamp problem - solved
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.