<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Wrong SQL Dates generated </title> 
  <pubDate>Fri, 10 Apr 2026 17:02:31 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9339</link> 
  <atom:link rel="self" type="application/rss+xml" title="Wrong SQL Dates generated " href="https://bugs.horde.org/ticket/9339/rss" /> 
  <description>Wrong SQL Dates generated </description> 
 
   
   
  <item> 
   <title>hi,

have a look at this output of current git, the sql da</title> 
   <description>hi,

have a look at this output of current git, the sql dates do not match the timespan as announced in the &quot;compiling server changes&quot; message, its after a reset from server 

2010-10-23T13:54:43+02:00 DEBUG: HORDE [horde] Compiling server changes from 1970-01-01 01:00:00 to 2010-10-23 13:54:42 [pid 6151 on line 640 of &quot;/var/www/_horde/horde/framework/SyncML/SyncML/Sync.php&quot;]
2010-10-23T13:54:43+02:00 DEBUG: HORDE [kronolith] SQL  (0.0005s)  
        SELECT pref_scope, pref_name, pref_value FROM horde_prefs WHERE
          pref_uid = &#039;x@xxx.xx&#039; AND pref_scope = &#039;kronolith&#039; [pid 6151 on line 761 of &quot;/var/www/_horde/horde/framework/Db/lib/Horde/Db/Adapter/Base.php&quot;]
2010-10-23T13:54:43+02:00 DEBUG: HORDE [kronolith] SQL  (0.0002s)  
        SELECT g.group_uid AS group_uid, g.group_name AS group_name FROM
          horde_groups g, horde_groups_members m WHERE m.user_uid =
          &#039;x@xxx.xx&#039; AND g.group_uid = m.group_uid ORDER BY
          g.group_name [pid 6151 on line 761 of &quot;/var/www/_horde/horde/framework/Db/lib/Horde/Db/Adapter/Base.php&quot;]
2010-10-23T13:54:43+02:00 DEBUG: HORDE [kronolith] SQL Query by Horde_Share_sql::listShares: SELECT DISTINCT s.*  FROM kronolith_shares s  LEFT JOIN kronolith_shares_users u ON u.share_id = s.share_id WHERE s.share_owner = &#039;x@xxx.xx&#039; OR (s.perm_creator &amp; 2) OR (s.perm_default &amp; 2) OR ( u.user_uid = &#039;x@xxx.xx&#039; AND (u.perm &amp; 2)) ORDER BY s.attribute_name ASC [pid 6151 on line 477 of &quot;/var/www/_horde/horde/framework/Share/lib/Horde/Share/Sql.php&quot;]
2010-10-23T13:54:43+02:00 DEBUG: HORDE [turba] SQL  (0.0005s)  
        SELECT pref_scope, pref_name, pref_value FROM horde_prefs WHERE
          pref_uid = &#039;x@xxx.xx&#039; AND pref_scope = &#039;turba&#039; [pid 6151 on line 761 of &quot;/var/www/_horde/horde/framework/Db/lib/Horde/Db/Adapter/Base.php&quot;]
2010-10-23T13:54:43+02:00 DEBUG: HORDE [turba] SQL Query by Horde_Share_sql::listShares: SELECT DISTINCT s.*  FROM turba_shares s  LEFT JOIN turba_shares_users u ON u.share_id = s.share_id WHERE s.share_owner = &#039;x@xxx.xx&#039; OR (s.perm_creator &amp; 4) OR (s.perm_default &amp; 4) OR ( u.user_uid = &#039;x@xxx.xx&#039; AND (u.perm &amp; 4)) ORDER BY s.share_name ASC [pid 6151 on line 477 of &quot;/var/www/_horde/horde/framework/Share/lib/Horde/Share/Sql.php&quot;]
2010-10-23T13:54:43+02:00 DEBUG: HORDE [turba] SQL  (0.0002s)  
        SELECT COUNT(*) FROM horde_perms WHERE perm_name =
          &#039;turba:sources:localsql&#039; [pid 6151 on line 761 of &quot;/var/www/_horde/horde/framework/Db/lib/Horde/Db/Adapter/Base.php&quot;]
2010-10-23T13:54:43+02:00 DEBUG: HORDE [kronolith] SQL Query by Horde_Share_sql::listShares: SELECT DISTINCT s.*  FROM kronolith_shares s  LEFT JOIN kronolith_shares_users u ON u.share_id = s.share_id WHERE  (s.share_owner = &#039;x@xxx.xx&#039; OR (s.perm_creator &amp; 2) OR (s.perm_default &amp; 2) OR ( u.user_uid = &#039;x@xxx.xx&#039; AND (u.perm &amp; 2))) AND s.share_owner = &#039;x@xxx.xx&#039; ORDER BY s.attribute_name ASC [pid 6151 on line 477 of &quot;/var/www/_horde/horde/framework/Share/lib/Horde/Share/Sql.php&quot;]
2010-10-23T13:54:43+02:00 DEBUG: HORDE [kronolith] SQL Query by Horde_Share_sql::listShares: SELECT DISTINCT s.*  FROM kronolith_shares s  LEFT JOIN kronolith_shares_users u ON u.share_id = s.share_id WHERE s.share_owner = &#039;x@xxx.xx&#039; OR (s.perm_creator &amp; 4) OR (s.perm_default &amp; 4) OR ( u.user_uid = &#039;x@xxx.xx&#039; AND (u.perm &amp; 4)) ORDER BY s.attribute_name ASC [pid 6151 on line 477 of &quot;/var/www/_horde/horde/framework/Share/lib/Horde/Share/Sql.php&quot;]
2010-10-23T13:54:43+02:00 DEBUG: HORDE [kronolith] Kronolith_Driver_Sql::_listEventsConditional(): user = &quot;x@xxx.xx&quot;; query = &quot;SELECT event_id, event_uid, event_description, event_location, event_private, event_status, event_attendees, event_title, event_recurcount, event_url, event_recurtype, event_recurenddate, event_recurinterval, event_recurdays, event_start, event_end, event_allday, event_alarm, event_alarm_methods, event_modified, event_exceptions, event_creator_id, event_resources, event_baseid, event_exceptionoriginaldate FROM kronolith_events WHERE calendar_id = ? AND event_baseid = &#039;&#039; AND ((event_end &gt;= ? AND event_start &lt;= ?) OR (event_recurenddate &gt;= ? AND event_start &lt;= ? AND event_recurtype &lt;&gt; ?))&quot;; values = &quot;x@xxx.xx,1969-12-31 23:00:00,1970-01-01 22:59:59,1969-12-31 23:00:00,1970-01-01 22:59:59,0&quot; [pid 6151 on line 349 of &quot;/var/www/_horde/horde/kronolith/lib/Driver/Sql.php&quot;]
2010-10-23T13:54:43+02:00 DEBUG: HORDE [horde] Sending 0 server changes for client URI event [pid 6151 on line 640 of &quot;/var/www/_horde/horde/framework/SyncML/SyncML/Sync.php&quot;]
</description> 
   <pubDate>Sat, 23 Oct 2010 12:09:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9339#t60622</link> 
  </item> 
   
  <item> 
   <title>hi,

i found the problem:

in SyncML/Backend/Horde.php L</title> 
   <description>hi,

i found the problem:

in SyncML/Backend/Horde.php Line 916 $registry-&gt;{$database}-&gt;listUids is called without a start/end parameter and the sql driver sets it to 0/0 so changes from 1970to 1970 are searched

-                                SyncML_Backend::getParameter($databaseURI, &#039;source&#039;));
+                                SyncML_Backend::getParameter($databaseURI, &#039;source&#039;), $from_ts, $to_ts);

so now i get the events but finally a PHP Fatal error: 
Call to undefined method Horde_Date::correct() in /var/www/_horde/horde/framework/Icalendar/lib/Horde/Icalendar.php on line 937

this protected call must be removed in Icalender.php as its already called from the Horde_Date object itself

</description> 
   <pubDate>Mon, 08 Nov 2010 10:22:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9339#t60765</link> 
  </item> 
   
  <item> 
   <title>Is this still an issue? Current SyncML code doesn&#039;t contain </title> 
   <description>Is this still an issue? Current SyncML code doesn&#039;t contain that line number, and the code that calls listUids looks correct to me. I also believe the fatal Horde_Date issue was resolved not that long ago as well.</description> 
   <pubDate>Tue, 16 Nov 2010 06:56:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9339#t60853</link> 
  </item> 
   
  <item> 
   <title>Well, *now* it&#039;s resolved, anyway :)</title> 
   <description>Well, *now* it&#039;s resolved, anyway :)</description> 
   <pubDate>Tue, 16 Nov 2010 07:02:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9339#t60856</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
