Author Topic: Daylight / one hour off  (Read 5018 times)

Niels

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Vesper Interactive
Daylight / one hour off
« on: June 23, 2009, 09:59:16 am »
I guess it's all part of the same problem but even after updating to 1.4.2 I do not see the right time in the iCal export.
In thunderbird and on Mac iCal I get all events and appointments one hour early. This is a feature I use alot, so it would be nice if there would be a fix, or even a 'quick and dirty' fix for now.

Any chance on this ?

alvarotm01

  • Administrator
  • Sr. Member
  • *****
  • Posts: 335
    • View Profile
    • Email
Re: Daylight / one hour off
« Reply #1 on: June 26, 2009, 11:22:19 am »
Hi,

Is your timezone in daylight saving time?
If it is, then the problem is that Opengoo is not supporting DST, in that case you can change your timezone in Opengoo.

alvarotm01

  • Administrator
  • Sr. Member
  • *****
  • Posts: 335
    • View Profile
    • Email
Re: Daylight / one hour off
« Reply #2 on: June 26, 2009, 12:10:12 pm »
Also you can try modifying the file '/environment/classes/event/CalFormatUtilities.php'
replace lines 93 and 94 with this ones
Code: [Select]
$event_start = new DateTimeValue($event->getStart()->getTimestamp() + 3600 * $user->getTimezone());
$event_duration = new DateTimeValue($event->getDuration()->getTimestamp() + 3600 * $user->getTimezone());

hope this helps..
regards