serializeTimestamp incorrectly formats fractional seconds
---------------------------------------------------------
Key: JIBX-131
URL: http://jira.codehaus.org/browse/JIBX-131
Project: JiBX
Issue Type: Bug
Components: core
Environment: Windows 2000 Professional, IBM Rational Software
Development Platform v. 6.0.1
Reporter: Curt Carlson
Attachments: JiBXTest.java
org.jibx.runtime.Utility.serializeTimestamp formats seconds with fractions as:
ss.fff.fffffZ -- should be: ss.ffffffZ
Java code sample:
-------------------------------
Timestamp ts = Timestamp.valueOf("2006-09-07 15:37:10.123456");
System.out.println("value of timestamp: " + ts.toString());
System.out.println("jibx serialized: " +
org.jibx.runtime.Utility.serializeTimestamp(ts));
Output to console:
----------------------------
[9/7/06 16:58:24:477 CDT] 00000035 SystemOut O value of timestamp:
2006-09-07 15:37:10.123456
[9/7/06 16:58:24:477 CDT] 00000035 SystemOut O jibx serialized:
2006-09-07T20:37:10.123.12345Z
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs