Setting Server Timezone

We can set web servers date timezone with ".htaccess" file .

Example

To set Los Angeles time (Pacific time) timezone for our webserver use following code

RewriteEngine On SetEnv TZ America/Los_Angeles

Other location examples include:

America/New_York - Eastern Time America/Detroit - Eastern Time - Michigan (most locations) America/Louisville - Eastern Time (Louisville, Kentucky) America/Indianapolis - Eastern Standard Time (Indiana, most locations) America/Indiana/Marengo - Eastern Standard Time (Indiana, Crawford County) America/Indiana/Knox - Eastern Standard Time (Indiana, Starke County) America/Indiana/Vevay - Eastern Standard Time (Indiana, Switzerland County) America/Chicago - Central Time America/Menominee - Central Time (Michigan, Wisconsin border) America/Denver - Mountain Time America/Boise - Mountain Time (South Idaho, East Oregon) America/Shiprock - Mountain Time (Navajo) America/Phoenix - Mountain Standard Time (Arizona) America/Los_Angeles - Pacific Time America/Anchorage - Alaska Time America/Juneau - Alaska Time (Alaska panhandle) America/Yakutat - Alaska Time (Alaska panhandle neck) America/Nome - Alaska Time (west Alaska) America/Adak - Aleutian Islands Pacific/Honolulu - Hawaii