6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/8/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#7784] Kronolith problem with Holidays
*
Your Email Address
*
Spam protection
Enter the letters below:
._..__ .___..__.. . | [__) | | ||\/| _|_| \ | |__|| |
Comment
> How a fix introduces a problem: > > > > function_exists needs a string argument, this is corrected in 1.2.1 and > > immediately breaks the 1.2.1 version: > > > > the easter_days function returns the number of days after Mar 21 > instead of a Date object, > > and calling a member function of an integer is not possible. > > > > > > With my poor PHP knowledge it should be moreorless: > > > > 396 function calcEaster($year) > > 397 { > > 398 if (function_exists('easter_days')) { > > 399 $mar21offset= easter_days($year); > > 400 $eastern=new Date(sprintf("%04d-03-21",$year)); > > 401 $eastern->addSeconds($mar21offset*86400); > > 402 return($eastern); > > 403 } > > > > > > Kind Regards, > > > > > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers