AdvancedCustomFields / AdvancedCustomFields/acf
Date Time Picker Custom Date Format Does Not Preserve Escape Characters When Imported via "Import Field Groups" Tool
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:
- Create a Date Time Picker field
- Use a custom date format that includes escaped characters (i.e.
Y-m-d\TH:i:s\Zto add literalTin the middle andZat the end) - Export the field
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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