beginner
beginner

Reputation: 673

how to get the timezone name which are currently set in my Codeigniter application

I am dynamically setting the timezone in my Codeigniter web project by using: date_default_timezone_set($this->session->userdata('timezone'));

For debugging purposes, I want to check whether the timezone name which I have set using: date_default_timezone_set($this->session->userdata('timezone'));

How can I check which timezone is set in my web project?

Upvotes: 1

Views: 3086

Answers (1)

meenxo
meenxo

Reputation: 1196

Have you tried the following function?

date_default_timezone_get();

Upvotes: 3

Related Questions