[Kolab-devel] [issue1131] Kolab Date problem in resource handler

Pieter Vanmeerbeek kolab-issues at intevation.de
Mon Feb 20 15:26:21 CET 2006


Pieter Vanmeerbeek <pieter.vanmeerbeek at able.be> added the comment:

Problem : 
1 . iCalendar->getAttribute('DTSTART') for example may return an epoch or an
array of day-month-year. The resmgr.php resourcehandling script only accepts an
epoch. ( this is the case when a whjole day event is planned, an event with time
associated will return an epoch). this results in 1/1/1970 dates.

2. appointments with resources which are not assigned a show-time-as free, are
added as a busy appointment

Solution : 
1. As I do not know which other files may use the getAttribute routine I
modified the resmgr.php.in file to include some conversion routines. One for
creating the appointment in the reousrces calendar and one to compare freebusy
epoch intervals

2. a show-time-as attribute is added to the event in the resource calendar based
on the TRANSP property  == TRANSPARANT instead of opaque.



A diff of the applied changes is attached 

kind regards,
Pieter
________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://intevation.de/roundup/kolab/issue1131>
________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resource.patch
Type: application/octet-stream
Size: 3609 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20060220/9e73978c/attachment-0001.obj>


More information about the devel mailing list