Menu

#255 FlatXmlWriter doesn't export LocalDateTime value properly

(future)
pending
XML (1)
5
2024-02-07
2024-01-29
TomK
No

FlatXmlWriter uses the toString() method to write the values from the IDataSet to the XML output. When timestamp values are retrieved as LocalDateTime (and probably other classes from java. time) by the JDBC driver, then the generated format is not readable by DbUnit later. LocalDateTime.toString() generates e.g. 2024-01-29T21:49:48+01:00, but DbUnit doesn't recognize the T, nor the appended time zone.

Either the output of FlatXmlWriter should be changed, or the parsing of the XML values should be adjusted.

Discussion

  • Jeff Jensen

    Jeff Jensen - 2024-02-07

    Thank you for reporting. Do you have it working locally? Are you able to create a MR (merge request) with a fix and tests?

     
  • Jeff Jensen

    Jeff Jensen - 2024-02-07
    • status: open --> pending
    • assigned_to: Jeff Jensen
     

Log in to post a comment.

MongoDB Logo MongoDB