RE: [PHP] daylight savings time ?
| From: | Don Read | Date: | Wed, 02 Apr 2003 07:42:46 +0000 |
| Subject: | RE: [PHP] daylight savings time ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141940@lists.php.net to get a copy of this message | ||
On 02-Apr-2003 Heather P wrote:
> Hello.
> I use a forum which has the time as the coding (D M d, Y g:i a) how do I
> add
> an hour for daylight savings time ? I live in the uk and the time on the
> forum is wrong. how do I change it ? Thanks
>
Assuming you wrote the scripts (rather than you just "use" it) then add
putenv('TZ=GMT0BST'); at the start oof each script.
Regards,
--
Don Read dread@texas.net
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.