[Tickets #7961] Re: Unable to retrieve list of holidays

bugs at horde.org bugs at horde.org
Sat Feb 7 16:50:15 UTC 2009


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7961
------------------------------------------------------------------------------
  Ticket             | 7961
  Updated By         | adrieder at sbox.tugraz.at
  Summary            | Unable to retrieve list of holidays
  Queue              | Kronolith
  Version            | FRAMEWORK_3
  Type               | Bug
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


adrieder at sbox.tugraz.at (2009-02-07 11:50) wrote:

> Sorry, but this doesn't make any sense. Can you provide a test case
> and/or check what difference this makes inside the Date_Holidays code?

This is what I get from the debug log:
Feb 07 17:18:19 HORDE [info] [kronolith] Unable to retrieve list of  
holidays from Mon Jan 26 00:00:00 2009 to Mon Mar 2 23:59:59 2009 [pid  
20372 on line 74 of  
"/usr/local/apache/htdocs/horde3/horde/kronolith/lib/Driver/holidays.php"]

I also logged $date->timestamp() and $holidays:
$date->timestamp() is: 1234393200
$holidays is: Date-string has wrong format (must be YYYY-MM-DD)

But the problem is that $date->timestamp() is of type string as  
discovered by gettype($date->timestamp())).
Date_Holidays expects an integer as timestamp.
So a cleaner fix of the problem is the newly attached patch, which  
does a type cast to integer instead of making a integer out of a  
string by addin 1.






More information about the bugs mailing list