开发者

Get timezone name in codeigniter

开发者 https://www.devze.com 2023-01-16 05:49 出处:网络
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_defau

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

精彩评论

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