6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/25/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#10194] Kronolith does not sync calendar, contacts work with Android 2.2.1/Motorola Milestone mobile
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .__ . .. . . | \[__)\ /| | | |__/[__) \/ |__|\__|
Comment
>> 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?
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers