summary refs log tree commit diff stats
path: root/includes/specialdates.php
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-04-04 15:46:12 -0400
committerStarla Insigna <hatkirby@fourisland.com>2009-04-04 15:46:12 -0400
commitce73c00ce2e9a9a686d0e6b09bf25f896f454ac4 (patch)
treeded5037b78c6af5d952ca2b09d3b3840227965df /includes/specialdates.php
parent623c36e777ddf7566f338619a21c07e2f1775b71 (diff)
downloadfourisland-ce73c00ce2e9a9a686d0e6b09bf25f896f454ac4.tar.gz
fourisland-ce73c00ce2e9a9a686d0e6b09bf25f896f454ac4.tar.bz2
fourisland-ce73c00ce2e9a9a686d0e6b09bf25f896f454ac4.zip
Tweaked Easter holidays again
It turned out that there actually was a problem with the algorithm.
Diffstat (limited to 'includes/specialdates.php')
-rwxr-xr-xincludes/specialdates.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/includes/specialdates.php b/includes/specialdates.php index d5706cf..4c774a7 100755 --- a/includes/specialdates.php +++ b/includes/specialdates.php
@@ -206,13 +206,12 @@ function sd_easter()
206 $nWD = sd_date('N',$ys); 206 $nWD = sd_date('N',$ys);
207 if ($nWD==7) {$nWD=0;} 207 if ($nWD==7) {$nWD=0;}
208 $ys+=(60*60*24*(7-$nWD)); 208 $ys+=(60*60*24*(7-$nWD));
209 $ys-=(60*60*24);
210 sd_solar_annual('Easter',sd_date('m',$ys),sd_date('j',$ys)); 209 sd_solar_annual('Easter',sd_date('m',$ys),sd_date('j',$ys));
211 $ys-=(60*60*24*46); 210 $ys-=(60*60*24*47);
212 sd_solar_annual('Mardi Gras',sd_date('m',$ys),sd_date('j',$ys)); 211 sd_solar_annual('Mardi Gras',sd_date('m',$ys),sd_date('j',$ys));
213 $ys+=(60*60*24); 212 $ys+=(60*60*24);
214 sd_solar_annual('Ash Wednesday',sd_date('m',$ys),sd_date('j',$ys)); 213 sd_solar_annual('Ash Wednesday',sd_date('m',$ys),sd_date('j',$ys));
215 $ys+=(60*60*24*38); 214 $ys+=(60*60*24*39);
216 sd_solar_annual('Palm Sunday',sd_date('m',$ys),sd_date('j',$ys)); 215 sd_solar_annual('Palm Sunday',sd_date('m',$ys),sd_date('j',$ys));
217 $ys+=(60*60*24*5); 216 $ys+=(60*60*24*5);
218 sd_solar_annual('Good Friday',sd_date('m',$ys),sd_date('j',$ys)); 217 sd_solar_annual('Good Friday',sd_date('m',$ys),sd_date('j',$ys));