diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2006-11-14 07:00:51 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2006-11-14 07:00:51 +0000 |
commit | 03d63c81c1e6f46be4d145ea84aa2c1198bc0984 (patch) | |
tree | 1ed6b1f78e40eed2de95db380362a8306153833b /functions/init.inc.php | |
parent | 3854c55579f2a8987176052f15a7a1a271858c23 (diff) | |
download | phpicalendar-03d63c81c1e6f46be4d145ea84aa2c1198bc0984.tar.gz phpicalendar-03d63c81c1e6f46be4d145ea84aa2c1198bc0984.tar.bz2 phpicalendar-03d63c81c1e6f46be4d145ea84aa2c1198bc0984.zip |
change date calcs to allow rss feeds to go across years
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r-- | functions/init.inc.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php index 83b540e..883ab36 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -1,5 +1,5 @@ <?php -$phpicalendar_version = '2.22'; +$phpicalendar_version = '2.23 rc1'; // uncomment when developing, comment for shipping version //error_reporting (E_ERROR | E_WARNING | E_PARSE); error_reporting(0); @@ -94,6 +94,11 @@ if (!isset($getdate)) { } } +preg_match ("/([0-9]{4})([0-9]{2})([0-9]{2})/", $getdate, $day_array2); +$this_day = $day_array2[3]; +$this_month = $day_array2[2]; +$this_year = $day_array2[1]; + if (ini_get('max_execution_time') < 60) { @ini_set('max_execution_time', '60'); } |