[Kolab-devel] freebusy with 32bit systems
    hede 
    kolab983 at der-he.de
       
    Fri Aug 12 16:57:30 CEST 2016
    
    
  
Hi,
Freebusy, in particular the "FIND AVAILIBILITY" mask, is nonfunctional with 32 bit architectures. 
The reason is:
in /usr/share/roundcubemail/plugins/calendar/calendar.php
-> public function freebusy_times()
-> $times[$s] = intval($dt->format($strformat));
-> the results for time in the list from $start till $end gets converted to integer by intval(). 
(for me it's line 2272)
An example for such a date is: "20160824180000". With 64 bit arch this is fine, integers are big enough to hold such values. With 32 bit architectures it gets converted to 2147483647 because an integer variable cannot hold a value of 20160824180000. Thus all dates are wrong in the resulting fbdata/freebusy_data in calendar_ui.js. This results in a timetable full of "unknown" values. 
Is there a reason to convert the value via intval()? 
I simply removed it (now adding string values!?) and Freebusy is functional, now. The timetable shows free and busy values. 
Regards
hede
(KolabOnArmv7)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: intval-non32.patch
Type: text/x-patch
Size: 428 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20160812/9a73d30d/attachment.bin>
    
    
More information about the devel
mailing list