Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

SD-884 use pretty_time on stock transfer created_at

Krzysztof Kaliszfe3bc996c7b2
diff --git a/backend/app/views/spree/admin/stock_transfers/show.html.erb b/backend/app/views/spree/admin/stock_transfers/show.html.erb
index 27220c2708..a57f808de9 100644
--- a/backend/app/views/spree/admin/stock_transfers/show.html.erb
+++ b/backend/app/views/spree/admin/stock_transfers/show.html.erb
@@ -13,7 +13,7 @@
<table class="table table-bordered">
<tr>
<td width="30%"><strong><%= Spree.t(:created_at) %></strong></td>
- <td><%= @stock_transfer.created_at %></td>
+ <td><%= pretty_time(@stock_transfer.created_at) %></td>
</tr>
<% if @stock_transfer.reference.present? %>
<tr>