ACSD-62793: Datetime attributes in exports missing time component. Additionally if Fields Enclosure enabled, attribute values enclosed within double-quotes
The ACSD-62793 patch fixes the issue where datetime attributes in exported data are missing the time component. Additionally if Fields Enclosure is enabled, attribute values in the additional_attributes column will be enclosed within double-quotes. This patch is available when the Quality Patches Tool (QPT) 1.1.55 is installed. The patch ID is ACSD-62793. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.8.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.7-p2
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.7 - 2.4.7-p3
magento/quality-patches
package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
Datetime attributes in exported data don’t include the time component. Additionally if Fields Enclosure is enabled, attribute values in the additional_attributes column will be enclosed within double-quotes.
Steps to reproduce:
- Create a product attribute with Catalog Input Type for Store Owner = Date and Time.
- Assign the attribute to the Default attribute set.
- Create a simple product with a date and time value for the new attribute.
- Export the product to a CSV file from System > Data Transfer > Export.
- Check the attribute value in the additional_attributes column. It only has the date part, but not time.
- Update the attribute value to use the time, e.g. “08/10/22, 3:20 PM”.
- Import the CSV file.
- Check the catalog_product_entity_datetime table.
Expected results:
The date and time are exported and imported properly.
Actual results:
Only the date part is exported and imported.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.