| @@ -220,11 +220,11 @@ | ||
| 220 | 220 | |
| 221 | 221 | /** |
| 222 | 222 | * One order as an app list row. The title is what a merchant scans |
| 223 | 223 | * for — number and total — and the REAL status rides `wcStatus` for |
| 224 | - * the band assigner, never `status`: the tile ribbon only speaks | |
| 225 | - * draft/pending/private/future, and `wc-processing` would paint a | |
| 226 | - * meaningless ribbon on every order. | |
| 224 | + * the band assigner and the list view, never `status`: the tile | |
| 225 | + * ribbon only speaks draft/pending/private/future, and `wc-processing` | |
| 226 | + * would paint a meaningless ribbon on every order. | |
| 227 | 227 | * |
| 228 | 228 | * @param \WC_Abstract_Order $order Order. |
| 229 | 229 | * @return array<string,mixed> |
| 230 | 230 | */ |
| @@ -262,8 +262,13 @@ | ||
| 262 | 262 | 'lockedBy' => '', |
| 263 | 263 | 'canEdit' => method_exists( $order, 'get_edit_order_url' ), |
| 264 | 264 | 'canDelete' => false, |
| 265 | 265 | 'wcStatus' => (string) $order->get_status(), |
| 266 | + // The list view's facts. `format()`, as `WC_DateTime::date()` | |
| 267 | + // labels site time +00:00 and the client reads the offset. | |
| 268 | + 'customer' => '' !== $name ? $name : __( 'Guest', 'desktop-mode' ), | |
| 269 | + 'date' => $order->get_date_created() ? $order->get_date_created()->format( 'c' ) : '', | |
| 270 | + 'modified' => $order->get_date_modified() ? $order->get_date_modified()->format( 'c' ) : '', | |
| 266 | 271 | ); |
| 267 | 272 | } |
| 268 | 273 | |
| 269 | 274 | /** |