Mailing List Archive

Timezone Problem Freebusy
Hello,

as far as I know, I report a known problem. But I think additional
information might help.
I attached the output of caldav.php as caldav.ics. In this file are some events
with the correct timezone.
In the second file, the output of freebusy.php, are these events
whithout timezone information. Therefore the free-busy information is
2 hours shifted in the client.

I hope this helps...

Thank you for your great work!

Moritz


--
Moritz Kobel, BSc BFH in Electrical Engineering <moritz.kobel at itds.ch>
Entwicklung und Systemadministration IT & Design Solutions GmbH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: caldav.ics
Type: text/calendar
Size: 2923 bytes
Desc: not available
URL: <http://lists.morphoss.com/pipermail/davical-users/attachments/20100507/a91998f9/attachment.ics>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freebusy.ics
Type: text/calendar
Size: 332 bytes
Desc: not available
URL: <http://lists.morphoss.com/pipermail/davical-users/attachments/20100507/a91998f9/attachment-0001.ics>
-------------- next part --------------

-------------- next part --------------
_______________________________________________
rscds-general mailing list
rscds-general at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rscds-general
Timezone Problem Freebusy [ In reply to ]
Moritz, Andrew,

(Sorry for the messed up thread, but I only just subscribed)

We have also been troubled by this problem. A likely solution that seems
to work for us is to use gmdate in the function RenderGMT in inc/RRule.php.

--- davical.bak/inc/RRule.php 2010-04-16 02:31:04.000000000 +0200
+++ davical/inc/RRule.php 2010-05-10 13:35:19.000000000 +0200
@@ -173,17 +173,17 @@
return date( $fmt, $this->_epoch );
}


/**
* Render the date as GMT
*/
function RenderGMT( $fmt = 'Ymd\THis\Z' ) {
- return date( $fmt, $this->_epoch );
+ return gmdate( $fmt, $this->_epoch );
}


/**
* No of days in a month 1(Jan) - 12(Dec)
*/
function DaysInMonth( $mo=false, $yy=false ) {
if ( $mo === false ) $mo = $this->_mo;

Cheers,
Stefan.



_______________________________________________
rscds-general mailing list
rscds-general at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rscds-general