Show purchase date in collection view

This commit is contained in:
Claudio Ortolina
2025-01-01 16:45:43 +00:00
parent 6a9d54f735
commit 8bd7197d18
4 changed files with 36 additions and 9 deletions
+4
View File
@@ -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