Skip to content

Commit

Permalink
Credo style guide amend
Browse files Browse the repository at this point in the history
  • Loading branch information
Callum Barratt committed Jan 28, 2016
1 parent 054f532 commit eef1d9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mix/tasks/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ defmodule Mix.Tasks.Api do
end

def format_date(%{"date" => date}) do
DateFormat.parse!("2015/#{date}", "{YYYY}/{0M}/{0D}")
date
|> DateFormat.parse!("2015/#{date}", "{YYYY}/{0M}/{0D}")
|> DateFormat.format!("%d %B %Y", :strftime)
end

Expand Down

0 comments on commit eef1d9a

Please sign in to comment.