<?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>Date_Holidays bad event start hour</title> 
  <pubDate>Thu, 09 Apr 2026 13:30:29 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8136</link> 
  <atom:link rel="self" type="application/rss+xml" title="Date_Holidays bad event start hour" href="https://bugs.horde.org/ticket/8136/rss" /> 
  <description>Date_Holidays bad event start hour</description> 
 
   
   
  <item> 
   <title>As you can see, there is something strange on some dates. I&#039;</title> 
   <description>As you can see, there is something strange on some dates. I&#039;ve got last Date_Holidays pear package as it was said to upgrade. On some dates, it was working correctly.. strange!



I trace and discovered this:



Apr  1 11:39:50 testDom HORDE[13801]: [kronolith] tracedom: Spring Bank Holiday [pid 13801 on line 204 of &quot;/var/www/perso/horde-webmail-1.2.2/kronolith/lib/Driver/holidays.php&quot;]

Apr  1 11:39:50 testDom HORDE[13801]: [kronolith] tracedom: deb Mon May 25 01:00:00 2009 [pid 13801 on line 209 of &quot;/var/www/perso/horde-webmail-1.2.2/kronolith/lib/Driver/holidays.php&quot;]

Apr  1 11:39:50 testDom HORDE[13801]: [kronolith] tracedom: fin Tue May 26 01:00:00 2009 [pid 13801 on line 210 of &quot;/var/www/perso/horde-webmail-1.2.2/kronolith/lib/Driver/holidays.php&quot;]



the events goes from 1h am to 1h am so lasting over two days. 



I&#039;ve made a quick and dirty patch in kronolith/lib/Driver/holidays.php in order to get it working properly:



--- /root/kronolith-h3-2.3.1/lib/Driver/holidays.php    2009-02-11 23:15:37.000000000 +0100

+++ holidays.php        2009-04-01 11:54:51.000000000 +0200

@@ -201,11 +201,12 @@ class Kronolith_Event_holidays extends K

         $this-&gt;initialized = true;

         $this-&gt;setTitle(String::convertCharset($dhEvent-&gt;getTitle(), &#039;UTF-8&#039;));

         $this-&gt;setId($dhEvent-&gt;getInternalName());

-

         $this-&gt;start = new Horde_Date($dhEvent-&gt;_date-&gt;getTime());

         $this-&gt;end = new Horde_Date($this-&gt;start);

         $this-&gt;end-&gt;mday++;

         $this-&gt;end-&gt;correct();

+                 $this-&gt;start-&gt;hour=0;

+                 $this-&gt;end-&gt;hour=0;

     }



     /**



 * @version  CVS: $Id: Holidays.php,v 1.21 2009/02/09 11:38:32 kguest Exp $



</description> 
   <pubDate>Wed, 01 Apr 2009 10:01:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8136#t53427</link> 
  </item> 
   
  <item> 
   <title>http://pear.php.net/bugs/bug.php?id=13865</title> 
   <description>http://pear.php.net/bugs/bug.php?id=13865</description> 
   <pubDate>Wed, 01 Apr 2009 10:29:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8136#t53431</link> 
  </item> 
   
  <item> 
   <title>&gt; http://pear.php.net/bugs/bug.php?id=13865



Date_holidays</title> 
   <description>&gt; http://pear.php.net/bugs/bug.php?id=13865



Date_holidays seems to be rather painfull! Thanks for the link. I tested German driver, and it was also buggy. Look at May.. And I was obliged to get rid of accents. I wrote a french driver, but using german, I could see some bad display also.



My patch has may be a little side effect without waiting for the pear update.



Thks



Dom

</description> 
   <pubDate>Wed, 01 Apr 2009 13:31:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8136#t53433</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
