AC-18096: Sales GraphQL date fields return date and time values in slash-separated format (d/m/Y…
Sales GraphQL date fields return date and time values in slash-separated format (d/m/Y H:i:s) instead of the dash-separated format (Y-m-d H:i:s) used in Adobe Commerce 2.4.8. Quality patch AC-18096 for magento/module-sales-graph-ql applies to Magento Open Source and Adobe Commerce 2.4.9.
Source: Adobe Experience League
- Categories
- GraphQL, Order/Checkout
- Components
- magento/module-sales-graph-ql
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.83
Issue
Sales GraphQL date fields return date and time values in slash-separated format (d/m/Y H:i:s) instead of the dash-separated format (Y-m-d H:i:s) used in Adobe Commerce 2.4.8
Steps to reproduce
1. Create an order. 1. Retrieve order date details using GraphQL: query getOrders { customer { orders { items { orderDateOK: created_at orderDateFAIL: order_date } } } }
Adobe's page lists 2.4.8 <=2.4.9-p1 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply AC-18096. On Cloud, add AC-18096 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its AC-18096/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-base >=2.4.9 <2.4.9-p1
- Magento Open Source
- 2.4.9
- Adobe Commerce
- 2.4.9
- Patch file
- patches/os/AC-18096_2.4.9.patch
- vendor/magento/module-sales-graph-ql/Model/Formatter/Order.php
- vendor/magento/module-sales-graph-ql/Model/Resolver/CreditMemo/CreditMemoComments.php
- vendor/magento/module-sales-graph-ql/Model/Resolver/Invoices.php
- vendor/magento/module-sales-graph-ql/Model/Resolver/Shipments.php
