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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Time stamp is 2 hrs different from Joomla?
Pages: [1]

Author Topic: Time stamp is 2 hrs different from Joomla?  (Read 2020 times)

tplowe

  • Guest
Time stamp is 2 hrs different from Joomla?
August 27, 2010, 09:48:47 am
Where do I set the time zone for Civicrim? The time stamp on donations is 2 hrs off of the time stamp generated by Joomla.

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Time stamp is 2 hrs different from Joomla?
August 27, 2010, 01:32:06 pm
It uses the OS's timezone.

tplowe

  • Guest
Re: Time stamp is 2 hrs different from Joomla?
August 28, 2010, 05:16:10 am
The OS shows the correct time zone. Civicrm is showing 2 hrs earlier.

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 stamp is 2 hrs different from Joomla?
August 28, 2010, 07:49:57 am

check what the timezone setting is in php.ini

alternatively write a small php script and discover the timezone setting there. civicrm does not set any timezone

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

tplowe

  • Guest
Re: Time stamp is 2 hrs different from Joomla?
August 28, 2010, 08:18:06 am
I'll check into the php.ini .

tplowe

  • Guest
Re: Time stamp is 2 hrs different from Joomla?
August 28, 2010, 08:41:32 am
So I added   "date.timezone = "US/Central" to the php.ini file in the root of my domain. Didn't do anything. Do I need to copy a php.ini file to some where else within civicrm?

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 stamp is 2 hrs different from Joomla?
August 28, 2010, 02:19:44 pm

run a

<?php phpinfo( );

and see if the timezone is taking effect

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

tplowe

  • Guest
Re: Time stamp is 2 hrs different from Joomla?
August 29, 2010, 09:42:46 am
phpinfo(); reports American/Phoenix. I attached a capture. Phoenix is 1 hour earlier than my local. This whole thing doesn't make sense, since civicrm is printing 2 hrs earlier.

tplowe

  • Guest
Re: Time stamp is 2 hrs different from Joomla?
August 29, 2010, 10:34:12 am
Ok I go it set right by placing this code on my index page.

Code: [Select]
date_default_timezone_set('America/Chicago');
That was simple. All my users for this site are local to that time zone, so it's fine for my usage. Might need something different for a site viewed in many time zones which would be more typical.

There is a good thread concerning time zones at: http://php.net/manual/en/function.date-default-timezone-set.php


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Time stamp is 2 hrs different from Joomla?

This forum was archived on 2017-11-26.