diff --git a/lib/src/model/literal.rs b/lib/src/model/literal.rs index 5d340a27..ab5bcdb3 100644 --- a/lib/src/model/literal.rs +++ b/lib/src/model/literal.rs @@ -268,11 +268,11 @@ impl From for Literal { } } -impl From for Literal { - fn from(value: Date) -> Self { +impl From for Literal { + fn from(value: DateTime) -> Self { Literal(LiteralContent::TypedLiteral { value: value.to_string(), - datatype: xsd::DATE.into(), + datatype: xsd::DATE_TIME.into(), }) } } @@ -286,11 +286,56 @@ impl From