Skip to content

Commit

Permalink
fix: use correct representation of date and time when exporting XML/GML
Browse files Browse the repository at this point in the history
Resolves issue introduced in 5.2.0 release.
Conversion to XmlDate and XmlDateTime was done but the result not used.
  • Loading branch information
emanuelaepure10 authored and stempler committed Jul 3, 2024
1 parent 2753eee commit 305b7ea
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public static <T> String convertToXml(T value, TypeDefinition type) {
GDate gdate = builder.toGDate();

xmlDate.setGDateValue(gdate);
return xmlDate.getStringValue();
}
else if (simpleTypeValue instanceof XmlDateTime) {
XmlDateTime xmlDateTime = (XmlDateTime) simpleTypeValue;
Expand All @@ -124,6 +125,7 @@ else if (simpleTypeValue instanceof XmlDateTime) {
GDate gdate = builder.toGDate();

xmlDateTime.setGDateValue(gdate);
return xmlDateTime.getStringValue();
}
else if (simpleTypeValue != null && simpleTypeValue instanceof XmlAnySimpleType) {
// Numbers should be handled here
Expand Down

0 comments on commit 305b7ea

Please sign in to comment.