-
Summary:
CheckIn:Change
the Date value parse mechanism in birt.core, flatfile driver and XML driver.
- Bugzilla Bug (s) Resolved:
No.
- Description:
After discussion, we decide to change the Date value parsing mechanism in
following three projects:
1.
Birt.core The Date parsing in DataTypeUtil class in birt.core will
follow the rule: All input string, once being parsed to a Date value, their
timezone information would have no effect to the Date object result from parse.
This means, “1991-12-1 12:00:00.S GMT” and “1991-12-1 12:00:00.S
GMT+8” will be parsed to same Date value.
2.
flatfile and xml driver: The Date parsing in flat file and XML driver
will follow the rule: All input string, once being parsed to a Date value, if
they have GMT info, then they will be parse to a Date as specified by the GMT
info. Otherwise they will be parsed to Date of local timezone.
- Tests Description:
Unit test.
- Files Edited:
"/org.eclipse.datatools.connectivity.oda.flatfile/META-INF/MANIFEST.MF"
"/org.eclipse.datatools.connectivity.oda.flatfile/src/org/eclipse/datatools/connectivity/oda/flatfile/util/DateFormatISO8601.java"
"/org.eclipse.birt.core.tests/test/org/eclipse/birt/core/data/DataTypeUtilTest.java"
"/org.eclipse.datatools.enablement.oda.xml.tests/META-INF/MANIFEST.MF"
"/org.eclipse.datatools.enablement.oda.xml.tests/test/org/eclipse/datatools/enablement/oda/xml/util/date/DateUtilTest.java"
"/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DateFormatISO8601.java"
"/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataTypeUtil.java"
"/org.eclipse.datatools.connectivity.oda.flatfile.tests/src/org/eclipse/datatools/connectivity/oda/flatfile/tests/util/DateUtilTest.java"
"/org.eclipse.datatools.connectivity.oda.flatfile.tests/META-INF/MANIFEST.MF"
"/org.eclipse.datatools.enablement.oda.xml/META-INF/MANIFEST.MF"
"/org.eclipse.datatools.enablement.oda.xml/src/org/eclipse/datatools/enablement/oda/xml/util/date/DateFormatISO8601.java"
- Files Added:
- Notes to Build Team:
N/A
- Notes to Developers:
N/A
- Notes to QA:
N/A
- Notes to Documentation:
N/A