Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: date picker field returns incorrect data #217

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

jasonbahl
Copy link
Contributor

What does this implement/fix? Explain your changes.

This fixes a bug with the date_picker field returning null when used as a nested field and different return_format options are set for the date format.

Does this close any currently open issues?

closes: #212

Any other comments?

With the following ACF Field Group: acf-export-2024-06-17.json

And data added to a post using the field group:

CleanShot 2024-06-17 at 14 45 38

Before

Fields of the date_picker and date_time_picker field type were returning the unix epoch (00:00:00 UTC on 1 January 1970) - when nested on flexible content layouts

CleanShot 2024-06-17 at 14 46 44

After

Now fields of the date_picker and date_time_picker field type return the expected values.

CleanShot 2024-06-17 at 14 46 12

@jasonbahl jasonbahl self-assigned this Jun 17, 2024
josephfusco
josephfusco previously approved these changes Jun 18, 2024
Copy link
Member

@josephfusco josephfusco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can see this change working using this branch fix/#212-date-picker-field-returns-incorrect-data 🙌🏼

wpgraphql-acf-217

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants