Skip to content
Snippets Groups Projects

REL: update changelog, bump version of pom.xml, update DEPENDENCIES

Merged Timm Fitschen requested to merge release-v0.5.0 into main
1 file
+ 11
4
Compare changes
  • Side-by-side
  • Inline
@@ -37,12 +37,19 @@ public class DateTimeDatatype extends AbstractDatatype {
try {
if (value instanceof UTCDateTime || value instanceof Date) {
return (DateTimeInterface) value;
} else if (value instanceof GenericValue) {
return DateTimeFactory2.valueOf(((GenericValue) value).toDatabaseString());
}
DateTimeInterface result;
if (value instanceof GenericValue) {
result = DateTimeFactory2.valueOf(((GenericValue) value).toDatabaseString());
} else {
return DateTimeFactory2.valueOf(value.toString());
result = DateTimeFactory2.valueOf(value.toString());
}
} catch (final IllegalArgumentException e) {
// Test if this is storable
result.toDatabaseString();
return result;
} catch (final UnsupportedOperationException | IllegalArgumentException e) {
throw ServerMessages.CANNOT_PARSE_DATETIME_VALUE;
}
}
Loading