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-899 Add timezone in returns views

Krzysztof Kalisze04724d34235
diff --git a/backend/app/views/spree/admin/return_index/customer_returns.html.erb b/backend/app/views/spree/admin/return_index/customer_returns.html.erb
index 7164194a67..e5c1ea6592 100644
--- a/backend/app/views/spree/admin/return_index/customer_returns.html.erb
+++ b/backend/app/views/spree/admin/return_index/customer_returns.html.erb
@@ -36,7 +36,7 @@
<tbody>
<% @collection.each do |customer_return| %>
<tr id="<%= spree_dom_id customer_return %>" data-hook="customer_return_row">
- <td><%= customer_return.created_at.to_date %></td>
+ <td><%= customer_return.created_at.strftime('%F %T %Z') %></td>
<td><%= link_to customer_return.number, spree.edit_admin_order_customer_return_path(customer_return.order, customer_return) %></td>
<td><%= link_to customer_return.order.number, spree.edit_admin_order_path(customer_return.order) %></td>
<td>
diff --git a/backend/app/views/spree/admin/return_index/return_authorizations.html.erb b/backend/app/views/spree/admin/return_index/return_authorizations.html.erb
index 13dc538241..c97864d65f 100644
--- a/backend/app/views/spree/admin/return_index/return_authorizations.html.erb
+++ b/backend/app/views/spree/admin/return_index/return_authorizations.html.erb
@@ -59,7 +59,7 @@
<tbody>
<% @collection.each do |return_authorization| %>
<tr id="<%= spree_dom_id return_authorization %>" data-hook="return_authorization_row">
- <td><%= return_authorization.created_at.to_date %></td>
+ <td><%= return_authorization.created_at.strftime('%F %T %Z') %></td>
<td><%= link_to return_authorization.number, spree.edit_admin_order_return_authorization_path(return_authorization.order, return_authorization) %></td>
<td><%= link_to return_authorization.order.number, spree.edit_admin_order_path(return_authorization.order) %></td>
<td>