You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2020/12/16 18:40:00 UTC
[jira] [Updated] (DAFFODIL-1115) DPath: xs:dateTime fractional
second precision lost
[ https://issues.apache.org/jira/browse/DAFFODIL-1115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Beckerle updated DAFFODIL-1115:
------------------------------------
Priority: Minor (was: Major)
> DPath: xs:dateTime fractional second precision lost
> ---------------------------------------------------
>
> Key: DAFFODIL-1115
> URL: https://issues.apache.org/jira/browse/DAFFODIL-1115
> Project: Daffodil
> Issue Type: Bug
> Components: Back End, DFDL Language
> Affects Versions: s15
> Reporter: Jessie Chab
> Priority: Minor
> Labels: reverify
>
> Note: This issue is in the dpath-with-serialization branch, not the current 0.15.0
> In test xsDateTime_constructor_03, a string is converted to an xs:dateTime with the xs:dateTime constructor function. The string includes microsecond precision (6 digits), but the parsed result rounds to the nearest 3rd fractional digit.
> [error] Test edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestDFDLExpressions.test_xsDateTime_constructor_03 failed: java.lang.Exception:
> [error] Comparison failed.
> [error] Expected
> [error] <dateTime04><string>1998-03-04T12:30:34.123456+00:00</string><dateTime>1998-03-04T12:30:34.123456+00:00</dateTime></dateTime04>
> [error] Actual
> [error] <dateTime04><string>1998-03-04T12:30:34.123456+00:00</string><dateTime>1998-03-04T12:30:34.123000+00:00</dateTime></dateTime04>
> This test is defined in the following file:
> daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_functions/Functions.tdml
--
This message was sent by Atlassian Jira
(v8.3.4#803005)