diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-05-07 19:17:33 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-05-07 19:17:33 +0200 |
commit | 01e942d44c7194607649817216aeb5d65c6acad6 (patch) | |
tree | 15777aa1005251f119e6dd680291147117766b5b /application/TimeZone.php | |
parent | bc22c9a0acb095970e9494cbe8954f0612e05dc0 (diff) | |
parent | 8868f3ca461011a8fb6dd9f90b60ed697ab52fc5 (diff) | |
download | Shaarli-01e942d44c7194607649817216aeb5d65c6acad6.tar.gz Shaarli-01e942d44c7194607649817216aeb5d65c6acad6.tar.zst Shaarli-01e942d44c7194607649817216aeb5d65c6acad6.zip |
Merge tag 'v0.8.4' into stable
Release v0.8.4
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 | { |