CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • WordPress Time Zone Problem
Pages: 1 [2]

Author Topic: WordPress Time Zone Problem  (Read 35326 times)

viusdeveloper

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
    • VIUS, LLC - Philadelphia Web Design & Development
  • CiviCRM version: 4.3.5
  • CMS version: Wordpress 3.5.2
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: WordPress Time Zone Problem
July 26, 2013, 01:37:39 pm
I have a fix for this but the retarded forums won't let me post it saying I can't post external links even though there's not a single external link in the post. /fail

Anyway I'm going to PM it to you Donald since you seem like someone who may be able to get it into Civi. I didn't clone the git repo or anything so I can't just submit a pull request. If you'd be so kind as to repost my post here for me for anyone else who needs this working before it gets fixed in the core, I'd appreciate it ;)

rd11

  • I’m new here
  • *
  • Posts: 18
  • Karma: 1
  • CiviCRM version: 4.5
  • CMS version: Wordpress
  • MySQL version: 5.5 (Amazon RDS)
  • PHP version: 5.3
Re: WordPress Time Zone Problem
November 02, 2013, 04:33:10 pm
Quote from: Donald Lobo on July 25, 2013, 10:07:12 am

i dont know if wp-cron.php is extensible, if so might be good to write a small plugin to hook civi's cron.php to wp's wp-cron.php

civi needs to handle the tz setting from the CMS in a better manner. right now it just uses the default setting from php

lobo

The timezone issue still exists, at least when polling scheduled jobs with cli.php. Better integrating civi's cron into WP's would be great...

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: WordPress Time Zone Problem
December 02, 2013, 01:54:02 am
I took a look at this for someone - I can't understand why it is not being reported more as my reading of the code is that in 4.4 this should affect everyone who sends time-sensitive scheduled reminders & doesn't have their server in England. In this case people were receiving event reminders 5 hours late ... after the event was finished.

Basically the patch Nicolas Submitted appears to also be required in the authenticateScript - the script bootstraps WP which sets the timezone to UTC. The tz needs to be switched back. Note that it didn't seem necessary in this context to reset the default tz afterwards

https://github.com/eileenmcnaughton/civicrm-core/commit/b5288a27ea44112284d60638efe73af122900c5c#commitcomment-4744922
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
Re: WordPress Time Zone Problem
December 14, 2013, 08:56:16 am
This is now definitely fixed on our site.  All times in CiviCRM correctly display correctly based on the WordPress timezone setting.

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • WordPress Time Zone Problem

This forum was archived on 2017-11-26.