views:

85

answers:

1

Im on a development server. When i do this in php:

echo date('r',time());

response: Tue, 01 Jun 2010 18:10:32 -0400

However, my computer's time is 17:10:32 (im on GMT -5). Where do i configure my apache/php to change this setting? i've looked in php.ini and httpd.conf already.

Thanks

+2  A: 

To set your server's time-zone add a line to your .htaccess file:

SetEnv TZ America/Indianapolis

For a list of supported timezones:

http://www.php.net/manual/en/timezones.america.php

Simon Brown