[PHP] date(), time() different to system time

2002-02-05 Thread Anth Courtney

Hey guys,

I'm running a RH7.2 box with apache 1.3.20 installed and php-4.1.1
installed as a DSO.

Everything is working fine, except that the output from any date() or
time() references is 16 hours behind the system time (and hwtime) on the
machine.

The machine gets its time from an ntp server which is correct; this setup
is similar for other boxes on the network which have no problems with the
date or time in php being correct.

If I output date('T') then the correct timezone (EST...I'm in Aus) is
displayed, but any time or dates are 16 hours behind.

Where does php read the time/date values from? Is there something I can
tweak or something that I should look at to correct this? I know I could
kludge around it in users php code by tacking an extra 16 hours onto each
value but obviously that's not a good solution for a box which will be
used by others!

Any thoughts / headsup would be appreciated.

cheers,
Anth

--
  Anth Courtney - Systems Administrator / Programmer
[EMAIL PROTECTED] - PLANET NETCOM - www.pnc.com.au
--




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




Re: [PHP] date(), time() different to system time

2002-02-05 Thread DL Neil

Hey Anth,

 Hey guys,

=some of the better-looking amongst us are not guys (and then some of us are...)

 I'm running a RH7.2 box with apache 1.3.20 installed and php-4.1.1
 installed as a DSO.

 Everything is working fine, except that the output from any date() or
 time() references is 16 hours behind the system time (and hwtime) on the
 machine.

 The machine gets its time from an ntp server which is correct; this setup
 is similar for other boxes on the network which have no problems with the
 date or time in php being correct.

 If I output date('T') then the correct timezone (EST...I'm in Aus) is
 displayed, but any time or dates are 16 hours behind.

 Where does php read the time/date values from? Is there something I can
 tweak or something that I should look at to correct this? I know I could
 kludge around it in users php code by tacking an extra 16 hours onto each
 value but obviously that's not a good solution for a box which will be
 used by others!

 Any thoughts / headsup would be appreciated.


Check out the meaning of EST.
Sixteen hours behind NSW, Australian time would make it New York time wouldn't it?

Rather than the three-character codes, check out the +or- settings in the date 
functions to check that you
and your server are in the same time zone.

=dn



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




Re: [PHP] date(), time() different to system time

2002-02-05 Thread Anth Courtney

On Tue, 5 Feb 2002, DL Neil wrote:

Hello DL,

 =some of the better-looking amongst us are not guys (and then some of us are...)

Sorry! :)

 Check out the meaning of EST.
 Sixteen hours behind NSW, Australian time would make it New York time wouldn't it?

*trumpet fanfare*

Thanks for that. Problem is now fixed after adjusting the system time so
that it is /now/ correct.

cheers,
Anth

--
  Anth Courtney - Systems Administrator / Programmer
[EMAIL PROTECTED] - PLANET NETCOM - www.pnc.com.au
--




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