6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/12/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#14018] Kronolith syncml duplicate event detection broken
*
Your Email Address
*
Spam protection
Enter the letters below:
. ,._.\ /.__ .__ \./ | >< [__)[__) | _|_/ \| |
Comment
>> Please provide a test case where this does not work. I can verify the >> following tests work: >> >> <code> >> $d1 = new Horde_Date('2015-06-20'); >> $d2 = new Horde_Date('2015-06-20'); >> var_dump($d1 == $d2); >> </code> >> >> Results >> bool(true) >> >> ========= >> >> <code> >> $d1 = new Horde_Date('2015-06-20'); >> $d2 = new Horde_Date('2014-06-20'); >> var_dump($d1 == $d2); >> </code> >> >> Results >> bool(false) >> >> > > You are right. Thanks. > > But my event test keeps failing, because of a timezone problem, as > more debug has shown. > > I have this setting in my php.ini: > date.timezone = "Europe/Madrid" > which is a supported setting ( > http://php.net/manual/en/timezones.europe.php ). > > But funambol for thunderbird (Windows desktop) is sending the events > with another timezone, and if I debug that date comparison in > kronolith/lib/Api.php for both date objects, it shows this: > > 2015-06-22T16:38:50+02:00 WARN: HORDE Caught output: > Horde_Date Object > ( > [_year:protected] => 2015 > [_month:protected] => 6 > [_mday:protected] => 22 > [_hour:protected] => 15 > [_min:protected] => 0 > [_sec:protected] => 0 > [_timezone:protected] => Europe/Paris > [_defaultFormat:protected] => Y-m-d H:i:s > [_formatCache:protected] => Array > ( > [Y-m-d H:i:s] => 2015-06-22 15:00:00 > ) > > ) > Horde_Date Object > ( > [_year:protected] => 2015 > [_month:protected] => 6 > [_mday:protected] => 22 > [_hour:protected] => 15 > [_min:protected] => 0 > [_sec:protected] => 0 > [_timezone:protected] => Europe/Madrid > [_defaultFormat:protected] => Y-m-d H:i:s > [_formatCache:protected] => Array > ( > [Y-m-d H:i:s] => 2015-06-22 15:00:00 > ) > ) > > Timezone are different, but date are equal, as both timezones are > GMT+1 (+2 right now in summer). > Once the event has been inserted in DB, the second format is used. > The former is the new event being inserted by funambol. > > Thus, comparing them with "==" return false, while using > compareDateTime function returns true. > > Thanks for your time.
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