* Thus wrote PHP Webmaster ([EMAIL PROTECTED]):
> 
> "Jon Kriek" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > putenv('TZ=Europe/London');
> >
> > OR
> >
> > putenv('TZ=GMT');
> >
> > --
> > Jon Kriek
> > http://phpfreaks.com
> >
> > "Php Webmaster" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > I'm in London and and my timezone is GMT, so what should I use?
> 
> OK, using the putenv code you posted, I now have:
> 
> <?php
> putenv('TZ=Europe/London');
> echo date("l jS F Y, g:i A, T");
> ?>
> 
> Which displays:
> Wednesday 1st October 2003, 1:19 AM, BST
> 
> The time and date is correct (thankgod!) but how comes the time zone is BST
> (?) and not GMT?

Because BST != GMT, and BST == Europe/London.  The major difference
between the two is that GMT is fixed, no adjustments for
summer/winter times. When fall (clocks turn back) comes around  I
believe the BST turns into GMT.

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to