Avada › Forums › Community Forum › Fix: Save time in fusion_form_submissions in WordPress timezone, not UTC
crmihailaParticipantJuly 27, 2022 at 1:17 pmPost count: 1
When Avada Forms inserts the form submission in the fusion_forms_submissions table from the database, it automatically inserts the current datetime in the time column.
The current time, however, is in the UTC timezone, not in the timezone from the WordPress settings.
That is confusing and has an easy fix:
– modify /wp-content/plugins/fusion-builder/inc/class-fusion-form-submit.php with date() instead of gmdate() on lines 916 and 923 (approx.)
– add date_default_timezone_set(get_option(‘timezone_string’)) before line 913 (approx.).
In my opinion, this should go into the next update.MichaelKeymasterJuly 28, 2022 at 11:40 amPost count: 770
You have active support, and our support team does not provide support via the community forum. If you need assistance, please create a support ticket using the link below, and our support team will gladly assist you.
Click Here To Get Avada Support
Thank you kindly
- You must be logged in to reply to this topic.