Show purchase date in collection view
This commit is contained in:
@@ -228,6 +228,10 @@ defmodule MusicLibrary.Records.Record do
|
||||
end
|
||||
end
|
||||
|
||||
def format_purchased_at(purchased_at) do
|
||||
"#{purchased_at.day}/#{purchased_at.month}/#{purchased_at.year}"
|
||||
end
|
||||
|
||||
defp parse_subtype("Album"), do: :album
|
||||
defp parse_subtype("EP"), do: :ep
|
||||
defp parse_subtype("Live"), do: :live
|
||||
|
||||
Reference in New Issue
Block a user