Skip to content

Commit

Permalink
Fix date format function
Browse files Browse the repository at this point in the history
  • Loading branch information
Callum Barratt committed Feb 4, 2016
1 parent 3b4a890 commit ac8f56c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/mix/tasks/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ defmodule Mix.Tasks.Api do
end

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

Expand Down

0 comments on commit ac8f56c

Please sign in to comment.