Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What php timezone I use for San Francisco, California, United Stated

What php timezone can I use for San Francisco, California US? I have spend sometime Googling it, but really can't find anything appropriate. I know it's UTC -8. But I am not sure which one to choose from the php.net timezones.

like image 776
Syed Sajid Avatar asked Nov 24 '14 14:11

Syed Sajid


People also ask

What timezone does PHP use?

The default timezone for PHP is UTC regardless of your server's timezone. This is the timezone used by all PHP date/time functions in your scripts.

How do I set default timezone?

The date_default_timezone_set() function sets the default timezone used by all date/time functions in the script.

What is the default time zone?

Unfortunately, there is no default time, so you have to change your time depending on the time zone used in the place.


2 Answers

I think America/Los_Angeles should work fine.

like image 185
trey-jones Avatar answered Sep 21 '22 13:09

trey-jones


You would use America/Los_Angeles

like image 44
John Conde Avatar answered Sep 18 '22 13:09

John Conde