projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9b9ec58
)
sync
author
Alan
<alan@roojs.com>
Fri, 27 Oct 2023 04:09:23 +0000
(12:09 +0800)
committer
Alan
<alan@roojs.com>
Fri, 27 Oct 2023 04:09:23 +0000
(12:09 +0800)
TimeZone.php
patch
|
blob
|
history
diff --git
a/TimeZone.php
b/TimeZone.php
index
69a3e57
..
e69d856
100644
(file)
--- a/
TimeZone.php
+++ b/
TimeZone.php
@@
-77,7
+77,7
@@
class Pman_Core_TimeZone extends Pman
FROM
mysql.time_zone_name
WHERE
FROM
mysql.time_zone_name
WHERE
- Name
NOT
LIKE '%/%'
+ Name LIKE '%/%'
AND
NAME NOT LIKE 'Etc%'
ORDER BY
AND
NAME NOT LIKE 'Etc%'
ORDER BY
@@
-87,15
+87,11
@@
class Pman_Core_TimeZone extends Pman
while($ce->fetch()) {
// ignroe timezone such as 'CET' and 'America/Argentina/Buenos_Aires'
while($ce->fetch()) {
// ignroe timezone such as 'CET' and 'America/Argentina/Buenos_Aires'
- if(substr_count($ce->Name, '/') != 1) {
- continue;
- }
+
$ar = explode('/', $ce->Name);
// ignore timezone such as 'Etc/GMT+8'
$ar = explode('/', $ce->Name);
// ignore timezone such as 'Etc/GMT+8'
- if($ar[0] == 'Etc') {
- continue;
- }
+
$displayArea = str_replace('_', ' ', $ar[1]);
$displayArea = str_replace('_', ' ', $ar[1]);