Skip to main content

Okay To Set Default PHP Timezone to same as Server Timezone?

Comments

2 comments

  • cPanelLauren
    The default is UTC and you don't need to keep it as such, I would want to make sure to use a supported timezone though and you can find those here: PHP: List of Supported Timezones - Manual A lot of times stuff like this is kept to UTC is to take away complications of having to translate different timezones If that's not an issue for you there shouldn't be any reason not to. You can use the MultiPHP INI Editor at WHM>>Software>>MultiPHP INI Editor and set this per php version for the entire server.
    0
  • John Schmerold
    I changed my timezone in MultiPHP.ini: [Date] ; Defines the default timezone used by the date functions ; PHP: Runtime Configuration - Manual date.timezone = "America/Chicago" When I run "PHP" via command-line it is still using GMT I restarted my server, what did I miss?
    0

Please sign in to leave a comment.