projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
976d54e
)
add Timezone
author
Alan
<alan@roojs.com>
Mon, 16 Oct 2023 04:20:31 +0000
(12:20 +0800)
committer
Alan
<alan@roojs.com>
Mon, 16 Oct 2023 04:20:31 +0000
(12:20 +0800)
TimeZone.php
patch
|
blob
|
history
diff --git
a/TimeZone.php
b/TimeZone.php
index
4e2901f
..
69a3e57
100644
(file)
--- a/
TimeZone.php
+++ b/
TimeZone.php
@@
-71,15
+71,19
@@
class Pman_Core_TimeZone extends Pman
}
$ce = DB_DataObject::factory('core_enum');
}
$ce = DB_DataObject::factory('core_enum');
- $ce->query(
'
+ $ce->query(
"
SELECT
SELECT
- *, TIME_FORMAT(TIMEDIFF(NOW(), CONVERT_TZ(NOW(), Name,
"UTC")), "%H:%i"
) as timeOffset
+ *, TIME_FORMAT(TIMEDIFF(NOW(), CONVERT_TZ(NOW(), Name,
'UTC')), '%H:%i'
) as timeOffset
FROM
mysql.time_zone_name
FROM
mysql.time_zone_name
+ WHERE
+ Name NOT LIKE '%/%'
+ AND
+ NAME NOT LIKE 'Etc%'
ORDER BY
timeoffset DESC,
Name DESC
ORDER BY
timeoffset DESC,
Name DESC
-
'
);
+
"
);
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'