Re: date("H", $datevalue) always adds an hour?
| From: | Michael Hulse | Date: | Sat, 21 Jan 2006 02:23:46 +0000 |
| Subject: | Re: date("H", $datevalue) always adds an hour? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-228999@lists.php.net to get a copy of this message | ||
Hi,
On Jan 20, 2006, at 2:24 AM, Murray @ PlanetThoughtful wrote:
Can anyone help me figure out how to accommodate for this?Not sure if this will help, but: # Set time zone: putenv('TZ=US/Pacific'); // I am on west-coast, my servers are on east, if not for this code the timestamp used in my script will reley upon the server time. This line of code will over-ride server time. Maybe look-up putenv on php.net and read-up in the comments section, I usually find good info that way. Gl, Cheers, Micky