mecachisenros / cf-civicrm

Caldera Forms CiviCRM Integration
GNU Affero General Public License v3.0
30 stars 26 forks source link

Set PHP default timezone during processors processing #179

Open agileware-pengyi opened 4 years ago

agileware-pengyi commented 4 years ago

WordPress seems to expect the PHP default timezone to be UTC. This will cause Civi to record the wrong date-time with the CFC processor. Here is a way to fix it. #167 #169

Before

Civi records the wrong date-time

After

Civi records the right date-time

Technical Details

May cause wrong date-time record in non CFC processors if them depends on WP date-time system. I didn't see any of them but just mentioned here. So there may be a better solution than this.

Comments

This is the current solution we are using.

Agileware ref: CFC-61

agileware-fj commented 3 years ago

We found that this was causing double offset issues where the time had been explicitly added to an activity, so have adjusted so that the timezone is set during the CiviCRM API calls themselves.

masetto commented 3 years ago

Hi, any news about this PR? Probably it solves time zone discrepancy.