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.
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.
The date_default_timezone_set() function sets the default timezone used by all date/time functions in the script.
Unfortunately, there is no default time, so you have to change your time depending on the time zone used in the place.
I think America/Los_Angeles
should work fine.
You would use America/Los_Angeles
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With