aboutsummaryrefslogtreecommitdiffstats
path: root/preferences.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-29 03:07:34 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-29 03:07:34 +0000
commit50ce9c8c7c7ac6b8c3137e84ec4da8a1bbe38a12 (patch)
treedb0b8b6315decf58289016c5472ed52fc7a9784f /preferences.php
parentcb7df8518466fe3a1e70df815dca056730cbbbc5 (diff)
downloadphpicalendar-50ce9c8c7c7ac6b8c3137e84ec4da8a1bbe38a12.tar.gz
phpicalendar-50ce9c8c7c7ac6b8c3137e84ec4da8a1bbe38a12.tar.bz2
phpicalendar-50ce9c8c7c7ac6b8c3137e84ec4da8a1bbe38a12.zip
change handling of multiday allday events in week view; other misc changes
Diffstat (limited to 'preferences.php')
-rw-r--r--preferences.php37
1 files changed, 17 insertions, 20 deletions
diff --git a/preferences.php b/preferences.php
index 400f09e..eb0f17a 100644
--- a/preferences.php
+++ b/preferences.php
@@ -156,20 +156,20 @@ $timezone_subset = array(
'Canada/Newfoundland',
'CET',
'EET',
- 'Etc/GMT-1',
- 'Etc/GMT-2',
- 'Etc/GMT-3',
- 'Etc/GMT-4',
- 'Etc/GMT-5',
- 'Etc/GMT-6',
- 'Etc/GMT-7',
- 'Etc/GMT-8',
- 'Etc/GMT-9',
- 'Etc/GMT-10',
- 'Etc/GMT-11',
- 'Etc/GMT-12',
- 'Etc/GMT-13',
'Etc/GMT-14',
+ 'Etc/GMT-13',
+ 'Etc/GMT-12',
+ 'Etc/GMT-11',
+ 'Etc/GMT-10',
+ 'Etc/GMT-9',
+ 'Etc/GMT-8',
+ 'Etc/GMT-7',
+ 'Etc/GMT-6',
+ 'Etc/GMT-5',
+ 'Etc/GMT-4',
+ 'Etc/GMT-3',
+ 'Etc/GMT-2',
+ 'Etc/GMT-1',
'Etc/GMT+1',
'Etc/GMT+2',
'Etc/GMT+3',
@@ -187,12 +187,13 @@ $timezone_subset = array(
'NZ',
'WET'
);
+
$timezone_select = '';
-foreach ($timezone_subset as $i => $timezone) {
- if ($timezone_subset[$i] == $cookie_timezone) {
+foreach ($timezone_subset as $timezone) {
+ if ($timezone == $cookie_timezone) {
$timezone_select .= "<option value='$timezone' selected='selected'>$timezone</option>\n";
} else {
- $timezone_select .= "<option value='$timezone.'>$timezone</option>\n";
+ $timezone_select .= "<option value='$timezone'>$timezone</option>\n";
}
}
@@ -209,9 +210,6 @@ while ($file = readdir($dir_handle)) {
}
closedir($dir_handle);
-$php_ended = getmicrotime();
-$generated = number_format(($php_ended-$php_started),3);
-
$page = new Page(BASE.'templates/'.$phpiCal_config->template.'/preferences.tpl');
$page->replace_files(array(
@@ -242,7 +240,6 @@ $page->replace_tags(array(
'startday_select' => $startday_select,
'style_select' => $style_select,
'display_date' => $lang['l_preferences'],
- 'generated' => $generated,
'message' => $message,
'l_preferences' => $lang['l_preferences'],
'l_prefs_subhead' => $lang['l_prefs_subhead'],

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