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 » DFDL - DateTime mapping add 1 year

Post new topic  Reply to topic
 DFDL - DateTime mapping add 1 year « View previous topic :: View next topic » 
Author Message
Thomas2ab
PostPosted: Wed Oct 29, 2014 3:56 pm    Post subject: DFDL - DateTime mapping add 1 year Reply with quote

Acolyte

Joined: 07 Mar 2014
Posts: 51

Hello everyone,

I am having a strange 'bug' and I'm really needing your help.
Here is the value I am sending from my XML (dateTime format):
2014-12-31T12:31:12
and here is the DFDL defintion for the output filed I am mapping this one to:

[code]<xsd:element dfdl:calendarCheckPolicy="strict" dfdl:calendarPattern="YYYYMMdd" dfdl:calendarPatternKind="explicit" dfdl:calendarTimeZone="UTC-03:00" dfdl:length="8" dfdl:lengthKind="explicit" dfdl:representation="text" dfdl:textPadKind="padChar" dfdl:textTrimKind="padChar" maxOccurs="1" minOccurs="1" name="InitialDate" type="xsd:dateTime"/>[/code]

In the output file I got this:
201[b]5[/b]1231

Wich, as you can see is one year more than the input (2015 instead of 2014).
Is there something wrong in my DFDL field definition?

Thanks!

Regards,
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Oct 29, 2014 7:27 pm    Post subject: Re: DFDL - DateTime mapping add 1 year Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Thomas2ab wrote:
Hello everyone,

I am having a strange 'bug' and I'm really needing your help.
Here is the value I am sending from my XML (dateTime format):
2014-12-31T12:31:12
and here is the DFDL defintion for the output filed I am mapping this one to:

Code:
<xsd:element dfdl:calendarCheckPolicy="strict" dfdl:calendarPattern="YYYYMMdd" dfdl:calendarPatternKind="explicit" dfdl:calendarTimeZone="UTC-03:00" dfdl:length="8" dfdl:lengthKind="explicit" dfdl:representation="text" dfdl:textPadKind="padChar" dfdl:textTrimKind="padChar" maxOccurs="1" minOccurs="1" name="InitialDate" type="xsd:dateTime"/>


In the output file I got this:
20151231

Wich, as you can see is one year more than the input (2015 instead of 2014).
Is there something wrong in my DFDL field definition?

Thanks!

Regards,

Well you did set the Time Zone for the dfdl field calendar...
You did not say what time zone the broker thinks he's in... but one year difference seems excessive... Report it through a PMR as a bug
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Thomas2ab
PostPosted: Thu Oct 30, 2014 2:48 am    Post subject: Reply with quote

Acolyte

Joined: 07 Mar 2014
Posts: 51

Hello,

The broker is also in UTC-03:00 GMT.
This is really weird indeed.
So you do think that there was nothing wrong?

Thanks,

Regards,
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Oct 31, 2014 2:18 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I agree with fjb_saper. If you can generate a simple flow ( XML in, DFDL out, one dateTime field ) that shows this behaviour then I think you should open a PMR.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
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 » DFDL - DateTime mapping add 1 year
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.