6.0.0-alpha10
5/15/25

[#6966] In lib/Driver/sql.php:listEvents (doesn't list future events in some context)
Summary In lib/Driver/sql.php:listEvents (doesn't list future events in some context)
Queue Kronolith
Queue Version 2.2
Type Bug
State Resolved
Priority 2. Medium
Owners jan (at) horde (dot) org
Requester sebastien.barre (at) univ-paris-diderot (dot) fr
Created 06/23/2008 (6170 days ago)
Due
Updated 07/13/2008 (6150 days ago)
Assigned 07/07/2008 (6156 days ago)
Resolved 07/13/2008 (6150 days ago)
Milestone 2.2.1
Patch No

History
07/13/2008 09:17:47 AM Jan Schneider State ⇒ Resolved
 
07/07/2008 07:04:11 PM Jan Schneider Comment #6
State ⇒ Feedback
Taken from Horde DevelopersHorde Developers
Reply to this comment
Please try what I committed.
07/06/2008 05:27:37 PM Jan Schneider Milestone ⇒ 2.2.1
 
06/26/2008 10:48:37 AM Jan Schneider Comment #4
Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
Assigned to Jan Schneider
Reply to this comment
Probably the same like bug #6847.
06/26/2008 10:45:24 AM Jan Schneider Deleted Original Message
 
06/23/2008 02:36:43 PM sebastien (dot) barre (at) univ-paris-diderot (dot) fr Comment #3
New Attachment: sql.php.2.patch Download
Reply to this comment
Couldn't attach a patch with the same name, or mistake ?

Here is the file.
06/23/2008 02:34:15 PM sebastien (dot) barre (at) univ-paris-diderot (dot) fr Comment #2 Reply to this comment
I attached a kind of patch, but I don't know if it's the best solution.
Especially when it's wrong... here is something that works.
06/23/2008 01:48:40 PM sebastien (dot) barre (at) univ-paris-diderot (dot) fr Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
New Attachment: sql.php.patch
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Kronolith
Summary ⇒ In lib/Driver/sql.php:listEvents (doesn't list future events in some context)
Type ⇒ Bug
Reply to this comment
When doing a refresh-from-server sync with SyncML, we didn't get 
future events.



I traced it back to a missing check in kronolith/lib/Driver/sql.php on 
line 227 (rev 1.204)

Sometime $endDate is already set to 31/12/9999, so when 
Date_Calc::nextDay is called

the resulting date is today. (It's not valid then reset to dateNow by 
Date_Calc::dateFormat).



For example, kronolith/lib/api.php:658 (rev 1.230) sets $endstamp to 
31/12/9999



I attached a kind of patch, but I don't know if it's the best solution.

Saved Queries