From ac8f56c1f586dd03e9edce040f7addd9385e94f0 Mon Sep 17 00:00:00 2001 From: Callum Barratt Date: Thu, 4 Feb 2016 10:50:19 +0000 Subject: [PATCH] Fix date format function --- lib/mix/tasks/api.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/mix/tasks/api.ex b/lib/mix/tasks/api.ex index 97860d1..538f9ab 100644 --- a/lib/mix/tasks/api.ex +++ b/lib/mix/tasks/api.ex @@ -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