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 »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Time Zone Nightmare
Pages: [1]

Author Topic: Time Zone Nightmare  (Read 2074 times)

lentilsoup

  • I post frequently
  • ***
  • Posts: 134
  • Karma: 6
Time Zone Nightmare
November 16, 2009, 09:13:03 am
I have an event entered as taking place at 1:15pm on December 30th.  However, it is displayed on both its CiviCRM page and any Drupal views as taking place at 4:15pm.  It looks like there's some time zone messiness going on, but for some reason it's displayed properly in the administration screen.  What am I doing wrong?

choster

  • I’m new here
  • *
  • Posts: 29
  • Karma: 2
    • Lattice Group
  • CiviCRM version: 4.3,4.4,4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.39
  • PHP version: 5.5.15
Re: Time Zone Nightmare
November 18, 2009, 08:41:36 am
Check your Drupal date and time settings. It gets quite confusing as the site timezone, server timezone, and user timezone may all differ— sometimes, I just try all three settings to see if one works correctly.

lentilsoup

  • I post frequently
  • ***
  • Posts: 134
  • Karma: 6
Re: Time Zone Nightmare
November 18, 2009, 09:57:54 am
Nope, changing Drupal's time zone doesn't change the displayed time at all... and the time zone was off what it should be by 1 hour, not 3.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Time Zone Nightmare
November 18, 2009, 10:01:48 am

difference between ET/PT is 3 hours

i would set the timezone in your php.ini

check the php manual on how to do so

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

lentilsoup

  • I post frequently
  • ***
  • Posts: 134
  • Karma: 6
Re: Time Zone Nightmare
November 18, 2009, 10:06:53 am
No access to php.ini AFAIK -- this is on shared hosting.  And yes, the server is on the west coast and I'm on the East coast.  I've tried setting the timezone to America/NewYork in .htaccess, but it's not fixing anything:

Code: [Select]
SetEnv TZ America/New_York
EDITED TO ADD:
OK, weird, changing the Drupal time zone by one hour corrected the time displayed in the event editing form, which was the only place it was showing the 3-hours earlier time.  Crossing my fingers that this is solved.
« Last Edit: November 18, 2009, 10:10:04 am by lentilsoup »

sykong

  • Guest
Re: Time Zone Nightmare
November 23, 2009, 03:24:29 pm
Quote from: lentilsoup on November 18, 2009, 10:06:53 am
No access to php.ini AFAIK -- this is on shared hosting.  And yes, the server is on the west coast and I'm on the East coast.  I've tried setting the timezone to America/NewYork in .htaccess, but it's not fixing anything:

Try setting the timezone in your drupal or civicrm settings file. Works for me!

i.e.
ini_set('date.timezone','America/New_York');

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Time Zone Nightmare

This forum was archived on 2017-11-26.