aboutsummaryrefslogtreecommitdiffstats
path: root/functions/init/date_range.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-24 21:09:31 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-24 21:09:31 +0000
commite58e043a9ed5862427c2f3e72fd5e34b61043368 (patch)
treef3bc50691609151291411517666411a6eab345ac /functions/init/date_range.php
parentdc5600eaf6d6e66a65c8fe84e98c862db28510a1 (diff)
downloadphpicalendar-e58e043a9ed5862427c2f3e72fd5e34b61043368.tar.gz
phpicalendar-e58e043a9ed5862427c2f3e72fd5e34b61043368.tar.bz2
phpicalendar-e58e043a9ed5862427c2f3e72fd5e34b61043368.zip
add day_end option to preferences
Diffstat (limited to 'functions/init/date_range.php')
-rw-r--r--functions/init/date_range.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions/init/date_range.php b/functions/init/date_range.php
index c74b1dc..a4579db 100644
--- a/functions/init/date_range.php
+++ b/functions/init/date_range.php
@@ -33,6 +33,10 @@ switch ($current_view){
$mArray_begin = mktime (0,0,0,$start_month,1,($start_year));
$mArray_end = mktime (0,0,0,$end_month,31,($end_year));
break;
+ case 'preferences':
+ $mArray_begin = time();
+ $mArray_end = time();
+ break;
default:
$mArray_begin = mktime (0,0,0,12,21,($this_year - 1));
$mArray_end = mktime (0,0,0,1,31,($this_year + 1));

© 2014-2024 Faster IT GmbH | imprint | privacy policy