Skip Navigation

[Resolved] Converting Date from Gravity Forms to Toolset

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 4 months, 1 week ago.

Assisted by: Minesh.

Author
Posts
#2715626

Hi There,

This is a continuation from an old issue discussed below

https://toolset.com/forums/topic/gravity-forms-date-field-compatibility-issue/

The old solution worked perfectly before but I believe it has now since depreciated. When the code is now implemented the date changes in toolset and displays in a view correctly immediately after the gravity forms submission but when a custom filter is applied to it the post is not considered in the view.

However, when I go in to the post from the backend and simply save it again the post is now able to be filtered.

Any thoughts would be greatly appreciated.

Regards,
Ed

#2715660

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I checked the code shared with the reference ticket you shared and I can see the code is converting the gravity forms date field value to Unix Timestamps and stores with the Types date field.

Can you please confirm that the post that is missing with the view that missing post does have the correct Unix Timestamp value available with the custom data field in the postmeta table. If yes:

Then can you please share problem URL where you added the view as well as what filter you applied and what posts are missing from the view results.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2715750

Thanks Minesh,

I fear this is going to be a long issue so I'm going to park it for now and potentially figure out a workaround. I might revisit it at a later date.

Many Thanks,
Ed