AdvancedCustomFields / AdvancedCustomFields/acf

Date Time Picker Custom Date Format Does Not Preserve Escape Characters When Imported via "Import Field Groups" Tool

Open
#642 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
945
Forks
197
PR merge metrics
No merged PRs in 30d

Description

ACF version: 5.12.2 (also tested on 5.10.2)
WordPress version: 5.9.3 (also tested on 5.8.3)

Repo steps:

  1. Create a Date Time Picker field
  2. Use a custom date format that includes escaped characters (i.e. Y-m-d\TH:i:s\Z to add literal T in the middle and Z at the end)
  3. Export the field
  4. Import via the "Import Field Groups" tool

Result:
The escape characters (\) are not preserved. The resulting import would have the custom date format Y-m-dTH:i:sZ. The escape slashes have to be manually re-inserted.

Expected:
The escape characters should be preserved during the import.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the Date Time Picker and the "Import Field Groups" tool using the custom format Y-m-d\TH:i:s\Z. Trace the import handling for the exported field format and verify that the imported value preserves both escape characters; done means the format remains unchanged after import.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.