[Tickets #10194] Re: Kronolith does not sync calendar, contacts work with Android 2.2.1/Motorola Milestone mobile

bugs at horde.org bugs at horde.org
Thu Jun 23 12:17:52 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/10194
------------------------------------------------------------------------------
  Ticket             | 10194
  Updated By         | mail at xeroc.org
  Summary            | Kronolith does not sync calendar, contacts work with
                     | Android 2.2.1/Motorola Milestone mobile
  Queue              | Synchronization
  Version            | Git master
  Type               | Bug
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             | Michael Rubinsky
------------------------------------------------------------------------------


mail at xeroc.org (2011-06-23 12:17) wrote:

> Your PHP is broken if it crashes on that.
Thats my guess was too.

I tested a little using the PHP-Shell:
####################
$tz = new DateTimeZone('Europe/Berlin');
var_dump($tz);
$date = new DateTime(null, new DateTimeZone('Europe/Berlin'));
var_dump($date);
$date->setDate(2011, 1, 10);
$date->setTime(18, 30, 0);
var_dump($date->getTimezone()->getName());
echo "<hr>";
$timezone = new DateTimeZone("Europe/London");
var_dump($timezone);
$transitions = $timezone->getTransitions();
print_r(array_slice($transitions, 0, 3));
####################

this script is working well.

Then I added a few lines to
framework/ActiveSync/lib/Horde/ActiveSync/Timezone.php in function  
getOffsetsFromDate()
after $timezone = $date->toDateTime()->getTimezone();
####################
echo "<hr>Horde_Date:\n";         var_dump($date);echo "<hr>";
echo "<hr>DateTime:\n";           var_dump($date->toDateTime());echo "<hr>";
echo "<hr>DateTimeZone:\n";        
var_dump($date->toDateTime()->getTimeZone());echo "<hr>";
echo "<hr>!!!!!!!!:\n";           var_dump($timezone->getName());echo "<hr>";
####################
The interessting thing is the value of "$timezone->getName()" which  
should be "Europe/Berlin" but appears to be 'binary' crap from  
somewhere in the memory.
####################
!!!!!!!!:
string(4) "??
"
####################

I set the timezone to Berlin with
$timezone = new DateTimeZone('Europe/Berlin');
and everything works well.

But this is not a 'nice' fix

I also reinstalled the php5 and php5-common packages using debian  
aptitude. No changes so far.
I also upgraded the pear packages using pear upgrad-all. no changes either.

What's next?






More information about the bugs mailing list