I created a content type with the date field, and am using it to feed calendars of various users. Whenever a user opens the ical export, all of the dates show up 1 day before the actual date. I've double checked and this isn't a mistake in my iCal Field settings or contextual date:node settings. The only way to fix the issue is to add hours to the date field in the content type settings. Unfortunately, I am hoping to only create all-day events.

All dates appear correct in my calendar views.

Note: This bug occurs in 7.x-3.x-alpha2 as well.

Any feedback would be MUCH appreciated!

Comments

CandC540’s picture

Title: All dates in iCal appear 1 day earlier » iCal Feed: All dates in iCal appear 1 day earlier

I'm having the same issue with 7.x-3.0-rc1

I have a node with a date field that has a granularity of Day what's happening is that the iCal feed is spitting out the correct date, but the time is T000000Z, which translates to 00:00:00 UTC. This translates to 4:00 PM on the previous day for my timezone. I'm sure tha this is the same problem that you're having.

I'm also hoping to create all day events without having to add an all day checkbox.

Here's the output from the feed:

BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
PRODID:-//Drupal iCal API//EN
BEGIN:VEVENT
UID:calendar.15.field_due_date.0
SUMMARY:Test
DTSTAMP:20120216T191901Z
DTSTART:20120229T000000Z
DTEND:20120229T000000Z
URL;VALUE=URI:http://localhost/node/15
DESCRIPTION:Status: PendingDue Date: Wednesday\, February 29\, 2012Project  \n Type: AnnouncementProject Notes: 
\n Test Project
\n 
\n Assigned To: Pending
\n  * Calendar [1]
\n 
\n \n [1] http://localhost/project-calendar
END:VEVENT
END:VCALENDAR
CandC540’s picture

Component: iCal import » iCal export
CandC540’s picture

Try the patch at http://drupal.org/node/1284170#comment-5613066 and see if it solves your problem.

karens’s picture

Status: Active » Closed (duplicate)