|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
DFDL - DateTime mapping add 1 year |
« View previous topic :: View next topic » |
Author |
Message
|
Thomas2ab |
Posted: Wed Oct 29, 2014 3:56 pm Post subject: DFDL - DateTime mapping add 1 year |
|
|
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 |
|
 |
fjb_saper |
Posted: Wed Oct 29, 2014 7:27 pm Post subject: Re: DFDL - DateTime mapping add 1 year |
|
|
 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 |
|
 |
Thomas2ab |
Posted: Thu Oct 30, 2014 2:48 am Post subject: |
|
|
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 |
|
 |
kimbert |
Posted: Fri Oct 31, 2014 2:18 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|