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 Drupal Modules (Moderator: Donald Lobo) »
  • Timezone handing for Views on events
Pages: [1]

Author Topic: Timezone handing for Views on events  (Read 411 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Timezone handing for Views on events
December 04, 2014, 06:15:53 am
 I had the following issue when using Drupal Views + Calendar module to display CiviCRM events on a monthly/weekly/daily calendar page. I also have a Views block that lists the next 5 upcoming events.   

 If the Drupal site was configured for EST ('America/New York')  then everything worked fine. 

 However if the Drupal site was configured for a time zone such as 'America/Los Angeles' or 'Australia/Sydney'  then events were shown on the wrong day on the monthly calendar page. (Such as an evening event would be shown on the day after the event start date)

I found a successful work-around: I edited the CiviCRM file "civicrm/drupal/modules/views/civicrm.views.inc"   I changed the
Code: [Select]
function civicrm_date_api_fields($field) {
 // Timezone handling options: 'none', 'site', 'date', 'utc'.
  // The following line is a hack to solve an issue
    'tz_handling' => 'none',
// Original code:
// 'tz_handling' => 'site',


Is this change an issue in CiviCRM? Is there something else I should be checking?  ( BTW: I checked the event start date in the table "civicrm_event" and verified that its stored as entered by the user.  )

 
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Timezone handing for Views on events

This forum was archived on 2017-11-26.