Skip to content

When ACF "Date Picker" field is used inside a "Flexible content" field always return epoch time from WPGraphQL Query #212

@DenislavPopov

Description

@DenislavPopov

Description

When ACF "Date Picker" field is used inside a "Flexible content" field, the returned value for this date field is always epoch time, disregarding the saved value. ( 1970-01-01T00:00:00+00:00 ).

Setup of the fields in ACF:
acf-setup

Saved settings on the page:
settings-on-the-page

GraphQL result:
graphql-result

Steps to reproduce

  1. Create ACF Field group and assign it to post type of Page
  2. Add "Flexible content" field and inside that field add "Date Picker" field, you can add additional fields just to check, that the data from this flexible field is returned.
  3. Query the fields added, and you'll notice the "Date Picker" field will always return epoch time.

Additional context

No response

WPGraphQL Version

1.27.0

WordPress Version

6.5.4

PHP Version

8.1.23

Additional environment details

WPGraphQL for ACF: version: 2.2.0

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have disabled ALL plugins except for WPGraphQL.

  • Yes
  • My issue is with compatibility with a specific WordPress plugin, and I have listed all my installed plugins (and version info) above.

Metadata

Metadata

Assignees

Labels

needs: reproductionThis issue needs to be reproduced independentlystatus: actionableReady for work to begintype: bugIssue that causes incorrect or unexpected behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions