From b17f1200fa44fa5e18aa3347048bcf6c2fdfd12a Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Tue, 22 Jan 2019 08:43:29 -0600 Subject: [PATCH] Escape non-code dateformat characters --- ext/TOML/src/print.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/TOML/src/print.jl b/ext/TOML/src/print.jl index a5438f8bca..49e8bf29e2 100644 --- a/ext/TOML/src/print.jl +++ b/ext/TOML/src/print.jl @@ -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) =