Skip to content

Commit

Permalink
Use :httpd.rfc1123_date to get a nicely formatted date
Browse files Browse the repository at this point in the history
  • Loading branch information
alco committed Apr 5, 2012
1 parent 9137e30 commit 69ebd52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/system.ex
Expand Up @@ -58,7 +58,7 @@ defmodule System.GitCompiler do
end

defp get_date do
normalize :os.cmd 'TZ=GMT date'
list_to_binary :httpd_util.rfc1123_date
end

defp normalize(string) do
Expand Down

0 comments on commit 69ebd52

Please sign in to comment.