Mohamed Omar Mohamed Omar - 4 days ago 10
MySQL Question

How to adjust server's time zone in Apache using wordpress?

I have developed my website in wordpress and it's

error_log
uses the default server time zone, but i want it to use my timezone which is
Asia/Kuwait
.

How to adjust/change the server to use my region's time zone.I'm using Wordpress and i have no access to the php.ini

Answer

I think you are looking for: date_default_timezone_set ( string $timezone_identifier )

You can also set this in your php.ini config.

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Europe/Berlin
Comments