<?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>Viewing calendar broken with postgres &amp; non-ISO date format - with fix</title> 
  <pubDate>Fri, 10 Apr 2026 19:28:27 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/1482</link> 
  <atom:link rel="self" type="application/rss+xml" title="Viewing calendar broken with postgres &amp; non-ISO date format - with fix" href="https://bugs.horde.org/ticket/1482/rss" /> 
  <description>Viewing calendar broken with postgres &amp; non-ISO date format - with fix</description> 
 
   
   
  <item> 
   <title>If using a postgresql database with the datestyle set to a n</title> 
   <description>If using a postgresql database with the datestyle set to a non-default value (mine is &#039;SQL, DMY&#039; for UK format dates), no events will show up on the calendar.

This is because SQL queries are composed in the ISO format YYYY-MM-DD.



To fix this, in kronolith/lib/Driver/sql.php, after lines 493-502 (case &#039;oci8&#039;: ... break;) add the following extra case for postgres:



            case &#039;pgsql&#039;:

                $query = &quot;SET datestyle TO &#039;iso&#039;&quot;;



                /* Log the query at a DEBUG log level. */

                Horde::logMessage(sprintf(&#039;SQL session setup by %s: query = &quot;%s&quot;&#039;,

                                          Auth::getAuth(), $query),

                                  __FILE__, __LINE__, PEAR_LOG_DEBUG);



                $this-&gt;_db-&gt;query($query);

                break;

</description> 
   <pubDate>Thu, 03 Mar 2005 22:35:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1482#t5979</link> 
  </item> 
   
  <item> 
   <title>Fixed in CVS and for 2.0.3 - thanks!</title> 
   <description>Fixed in CVS and for 2.0.3 - thanks!</description> 
   <pubDate>Thu, 03 Mar 2005 22:44:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1482#t5980</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
