Skip to content

Commit

Permalink
Escape non-code dateformat characters
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Jan 22, 2019
1 parent 95614fd commit b17f120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/TOML/src/print.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ end
printvalue(io::IO, value::AbstractDict; sorted=false) =
_print(io, value, sorted=sorted)
printvalue(io::IO, value::DateTime; sorted=false) =
Base.print(io, Dates.format(value, "YYYY-mm-ddTHH:MM:SS.sssZ"))
Base.print(io, Dates.format(value, dateformat"YYYY-mm-dd\THH:MM:SS.sss\Z"))
printvalue(io::IO, value::Bool; sorted=false) =
Base.print(io, value ? "true" : "false")
printvalue(io::IO, value; sorted=false) =
Expand Down

0 comments on commit b17f120

Please sign in to comment.