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) »
  • Calendar issues
Pages: [1]

Author Topic: Calendar issues  (Read 1660 times)

twowheeler

  • I post occasionally
  • **
  • Posts: 115
  • Karma: 11
    • Harrisburg Christian Performing Arts Center
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.1
  • PHP version: 5.3
Calendar issues
October 21, 2007, 03:44:24 pm
I have been struggling to get CiviEvents to show up on a drupal calendar for some time, and kept running into issues where an event would be shown on the calendar several hours after it is scheduled.  For example, today I created a meeting event for 6:00 PM to 10:00 PM.  It looked fine in CiviCRM, and the iCal feed would be displayed correctly in other calendars (like Mozilla Sunbird).  However the drupal calendar would shift this meeting to 4:00 AM the next morning, 10 hours later.   So I went digging for where the problem occurs, and found the following.

CiviEvents iCal feed uses a format that looks like:
DTSTART;VALUE=DATE:20071114T230000Z

This is a little unusual since most iCal sites use this:
DTSTART:20071114T230000Z

When I edited ICal.tpl to remove the VALUE=DATE part, suddenly it works.  Since other calendars handle it correctly it seems likely that this is a bug in the drupal calendar module rather than civicrm.  However for now I have made this change in ICal.tpl so at least it is usable.

u39851308:~/home > diff ICal.tpl.orig ICal.tpl     
15,16c15,16
< DTSTART;VALUE=DATE:{$event.start_date|crmICalDate}
< DTEND;VALUE=DATE:{$event.end_date|crmICalDate}
---
> DTSTART:{$event.start_date|crmICalDate}
> DTEND:{$event.end_date|crmICalDate}

Hope this is helpful.




Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Calendar issues
October 21, 2007, 06:42:07 pm
Dave - Thx for researching and trying stuff out with this. I'm trying to figure out where the format we're using came from. I was thinking we used the RFC 2445 format exactly - but on relooking at it, the specs match your modified format rather than our current one. ??? http://tools.ietf.org/html/rfc2445

I'm going to research this a bit more, but will likely change our output to eliminate the VALUE=DATE portion.
Protect your investment in CiviCRM by  becoming a Member!

twowheeler

  • I post occasionally
  • **
  • Posts: 115
  • Karma: 11
    • Harrisburg Christian Performing Arts Center
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Calendar issues
October 21, 2007, 06:58:18 pm
From what little I know about it, VALUE=DATE is only used when you want the time of an event to be ignored.  VALUE=DATE-TIME is the default and would be more appropriate here since we will be passing a time for our events.
Thanks.

twowheeler

  • I post occasionally
  • **
  • Posts: 115
  • Karma: 11
    • Harrisburg Christian Performing Arts Center
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Calendar issues
October 25, 2007, 06:27:04 pm
Dave,
Would it help if I filed an issue on this?

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: Calendar issues
October 25, 2007, 06:50:55 pm

The tpl has been fixed and this change is now part of the 1.9 distro

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

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

This forum was archived on 2017-11-26.