projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9b4a6d
)
TimeZone.php
author
leon
<leon@roojs.com>
Mon, 15 Apr 2024 03:56:11 +0000
(11:56 +0800)
committer
leon
<leon@roojs.com>
Mon, 15 Apr 2024 03:56:11 +0000
(11:56 +0800)
TimeZone.php
patch
|
blob
|
history
diff --git
a/TimeZone.php
b/TimeZone.php
index
1039e16
..
59f45cf
100644
(file)
--- a/
TimeZone.php
+++ b/
TimeZone.php
@@
-16,7
+16,8
@@
class Pman_Core_TimeZone extends Pman
function get($base, $opts=array())
{
- self::getTimezones($_REQUEST['lang']);
+ $this->lang = !empty($_REQUEST['lang']) && in_array($_REQUEST['lang'], array('en', 'zh_CN')) ? $_REQUEST['lang'] : 'en';
+ self::getTimezones($this->lang);
$data = array();