I'm not sure it's a bug, but I believe.
I did all steps as described in http://drupal.org/node/755312.
My configuration:
- Drupal 6.19
- CiviCRM 3.1.6
- Calendar 6.x-2.x-dev
- Date 6.x-2.x-dev
- Views 6.x-2.11

I have integrated the databases of CiviCRM and Drupal, so the Drupal Calendar module can display CiviCRM events. In my list of Views I have a "civicrm_events" view with several displays, such as "Upcoming events", "Events block" and "Month view". Everything works fine except one thing.

In the day, week and month views, if I have an event that starts at 16:00, it displays on the next day (my timezone is UTC+8). If it starts earlier than 16:00, it's shown on the correct day.

In the list of upcoming events, which is a Display in the same View, everything is correct. This display has no Argument, whereas the calendar displays have. May the problem is here, but I couldn't find anything.

I'm grateful for any help and hope I could at least discover a bug.

CommentFileSizeAuthor
Event calendar view.jpg60.84 KBthojoh
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Stoob’s picture

I can confirm this is happening as well, only in the opposite direction. My timezone is -8, and events starting before 8:00 AM appear on the previous day's calendar box. It appears Views/Date/and CiviCRM are not talking to each other appropriately regarding timezone.

jlac839’s picture

Version: 6.x-2.x-dev » 6.x-2.2

I too am running into this problem in the -8 timezone. Events marked as starting earlier than 8am appear on the previous day. In my case the entry does not show up on the day view (either the correct day or the prior day) but does show up on the weekly and monthly views. I admit that I may not have my views set up entirely correctly yet.

vega’s picture

I switched the date setting to UTC (in the drupal timezone setting), and it corrected the display on the incorrect dates for me.

lupus78’s picture

Switching to UTC dosen't help for me. I'm right, that there is no option in CiviCRM to set timezone!?!??!

EDIT

I was wrong, i had to disable user configurable timezones too in Drupal, and set timezone to UTC. It works... but i think we loose some drupal date handling functionality here....

sonicthoughts’s picture

THIS IS NOT A FIX. If you change timezone to UTC, it will set the wrong timezone for the system. There must be a problem with either date/time resolution / type-mismatch or timezone. Has anyone figured out a reasonable fix?

hawkbreeze’s picture

Although I have found a problem with CiviCRM 4.0.2 running on Drupal 7.2 this may be of help. I have found a problem with the CiviCRM/Views integration and the way dates are handled with regards to the timezone. More info at http://issues.civicrm.org/jira/browse/CRM-8284

xurizaemon’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)

Closing as duplicate of http://issues.civicrm.org/jira/browse/CRM-8284 (which is marked fixed in CiviCRM).

Also worth seeing http://issues.civicrm.org/jira/browse/CRM-2709 (closed WONTFIX?)

It's our understanding that there are remaining TZ issues in CiviCRM, but those should be resolved CiviCRM side rather than in Calendar module IMO.