diff options
Diffstat (limited to 'application/TimeZone.php')
-rw-r--r-- | application/TimeZone.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/application/TimeZone.php b/application/TimeZone.php index 26f2232d..36a8fb12 100644 --- a/application/TimeZone.php +++ b/application/TimeZone.php | |||
@@ -7,9 +7,9 @@ | |||
7 | * Example: preselect Europe/Paris | 7 | * Example: preselect Europe/Paris |
8 | * list($htmlform, $js) = generateTimeZoneForm('Europe/Paris'); | 8 | * list($htmlform, $js) = generateTimeZoneForm('Europe/Paris'); |
9 | * | 9 | * |
10 | * @param string $preselected_timezone preselected timezone (optional) | 10 | * @param string $preselectedTimezone preselected timezone (optional) |
11 | * | 11 | * |
12 | * @return an array containing the generated HTML form and Javascript code | 12 | * @return array containing the generated HTML form and Javascript code |
13 | **/ | 13 | **/ |
14 | function generateTimeZoneForm($preselectedTimezone='') | 14 | function generateTimeZoneForm($preselectedTimezone='') |
15 | { | 15 | { |
@@ -27,10 +27,6 @@ function generateTimeZoneForm($preselectedTimezone='') | |||
27 | $pcity = substr($preselectedTimezone, $spos+1); | 27 | $pcity = substr($preselectedTimezone, $spos+1); |
28 | } | 28 | } |
29 | 29 | ||
30 | // Display config form: | ||
31 | $timezoneForm = ''; | ||
32 | $timezoneJs = ''; | ||
33 | |||
34 | // The list is in the form 'Europe/Paris', 'America/Argentina/Buenos_Aires' | 30 | // The list is in the form 'Europe/Paris', 'America/Argentina/Buenos_Aires' |
35 | // We split the list in continents/cities. | 31 | // We split the list in continents/cities. |
36 | $continents = array(); | 32 | $continents = array(); |
@@ -97,7 +93,7 @@ function generateTimeZoneForm($preselectedTimezone='') | |||
97 | * @param string $continent the timezone continent | 93 | * @param string $continent the timezone continent |
98 | * @param string $city the timezone city | 94 | * @param string $city the timezone city |
99 | * | 95 | * |
100 | * @return whether continent/city is a valid timezone | 96 | * @return bool whether continent/city is a valid timezone |
101 | */ | 97 | */ |
102 | function isTimeZoneValid($continent, $city) | 98 | function isTimeZoneValid($continent, $city) |
103 | { | 99 | { |