diff --git a/backend/app/api/handlers/v1/v1_ctrl_items.go b/backend/app/api/handlers/v1/v1_ctrl_items.go index d38c037..062fbad 100644 --- a/backend/app/api/handlers/v1/v1_ctrl_items.go +++ b/backend/app/api/handlers/v1/v1_ctrl_items.go @@ -261,7 +261,9 @@ func (ctrl *V1Controller) HandleItemsExport() errchain.HandlerFunc { w.Header().Set("Content-Type", "text/tsv") w.Header().Set("Content-Disposition", "attachment;filename=homebox-items.tsv") + writer := csv.NewWriter(w) + writer.Comma = '\t' return writer.WriteAll(csvData) } } diff --git a/backend/internal/data/types/date.go b/backend/internal/data/types/date.go index 1b8b182..1c4b5fa 100644 --- a/backend/internal/data/types/date.go +++ b/backend/internal/data/types/date.go @@ -41,6 +41,7 @@ func DateFromString(s string) Date { try := [...]string{ "2006-01-02", "01/02/2006", + "2006/01/02", time.RFC3339, } diff --git a/docs/docs/import-csv.md b/docs/docs/import-csv.md index 5dffc38..8d5586f 100644 --- a/docs/docs/import-csv.md +++ b/docs/docs/import-csv.md @@ -64,12 +64,12 @@ Below are the supported columns. They are case sensitive, can be in any ordered | HB.notes | String (1000) | General notes about the product | | HB.purchase_from | String | Name of the place the item was purchased from | | HB.purchase_price | Float64 | | -| HB.purchase_at | Date | Date the item was purchased | +| HB.purchase_time | Date | Date the item was purchased | | HB.lifetime_warranty | Boolean | true or false - case insensitive | | HB.warranty_expires | Date | Date in the format | | HB.warranty_details | String | Details about the warranty | | HB.sold_to | String | Name of the person the item was sold to | -| HB.sold_at | Date | Date the item was sold | +| HB.sold_time | Date | Date the item was sold | | HB.sold_price | Float64 | | | HB.sold_notes | String (1000) | | diff --git a/frontend/components/Base/Card.vue b/frontend/components/Base/Card.vue index 88fef80..512748c 100644 --- a/frontend/components/Base/Card.vue +++ b/frontend/components/Base/Card.vue @@ -23,7 +23,7 @@