Hi,

More info on this bug...

# cat /etc/timezone
posix/Australia/Sydney

# date
Tue Apr  1 20:48:21 EST 2008

This is correct, however:

----foo.php----
<?php

echo date_default_timezone_get(). "\n";

$thetime = localtime(time(), true);
echo $thetime['tm_hour'] . "\n";

?>
----end foo.php----

# php foo.php
Australia/Melbourne
19

Both wrong, so the "magic" isn't working. If I set date.timezone in
php.ini to "Australia/Sydney", it's still reporting the wrong
localtime:

# php ./foo.php
Australia/Sydney
19

So, PHP 5.2.0-8+etch10, can't guess the right timezone if
date.timezone isn't set in php.ini, but even if it is set, it still
gets the localtime() wrong.

Regards, Dan...

--

Dan Searle
CensorNet Ltd - professional & affordable Web & E-mail filtering
[EMAIL PROTECTED] web: www.censornet.com
tel: 0845 230 9590 / fax: 0845 230 9591 / support: 0845 230 9592
snail: The Old Post Office, Bristol Rd, Hambrook, Bristol BS16 1RY. UK.

CensorNet Ltd is a registered company in England & Wales No. 05518629
VAT registration number 901-2048-78

Any views expressed in this email communication are those
of the individual sender, except where the sender specifically states
them to be the views of a member of CensorNet Ltd.  CensorNet Ltd does not
represent, warrant or guarantee that the integrity of this communication
has been maintained nor that the communication is free of errors or
interference.


------------------------------------------------------------------------------------
Scanned for viruses, spam and offensive content by CensorNet MailSafe

Professional Web & E-mail Filtering from www.censornet.com
Shortlisted for the BETT Awards 2008! www.bettawards.co.uk



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to