Skip to content

Commit

Permalink
fix dates in json (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbreloff authored and sglyon committed Jul 6, 2016
1 parent 192f1da commit f887b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ JSON._print(io::IO, state::JSON.State, a::HasFields) =
JSON._print(io, state, a.fields)

JSON._print(io::IO, state::JSON.State, d::Base.Dates.Date) =
JSON._print(io, state, "$(year(d))-$(month(d))-$(day(d))")
JSON._print(io, state, "$(Base.Dates.year(d))-$(Base.Dates.month(d))-$(Base.Dates.day(d))")

JSON._print(io::IO, state::JSON.State, p::Plot) =
JSON._print(io, state, Dict(:data => p.data, :layout => p.layout))
Expand Down

0 comments on commit f887b01

Please sign in to comment.