开发者

Get timezone name in codeigniter

I use the date helper in CI to save the timezone of the user when he signup eg: UM45.

I want to set the timezone of each user based on that and display the date time correspondingly, using date_default_timezone_set().

But that accepts only string.. How can I get the name of t开发者_开发百科he timezone based on UM45?


Seems it can be done via the Language Class:

$this->lang->load('date_lang');
$this->lang->line('UM45');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜