Add RDF.DateTime.tz/1 optimization for naive datetimes
This commit is contained in:
parent
b0bfd7fe62
commit
1fa369197e
1 changed files with 2 additions and 0 deletions
|
@ -58,6 +58,8 @@ defmodule RDF.DateTime do
|
||||||
NaiveDateTime.to_iso8601(value)
|
NaiveDateTime.to_iso8601(value)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def tz(%Literal{value: %NaiveDateTime{}}), do: ""
|
||||||
|
|
||||||
def tz(datetime_literal) do
|
def tz(datetime_literal) do
|
||||||
if valid?(datetime_literal) do
|
if valid?(datetime_literal) do
|
||||||
lexical = lexical(datetime_literal)
|
lexical = lexical(datetime_literal)
|
||||||
|
|
Loading…
Reference in a new issue