* Thus wrote Cody Phanekham ([EMAIL PROTECTED]):
?
$t = time();
echo \nbrtimestamp = $t;
echo \nbrtime = . date(r, $t);
?
if i run test.php via the web it produces the following output, which is correct:
timestamp = 1061443716
time = Thu, 21 Aug 2003 15:28:36 +1000
if i run
Curt,
The admin that is in charge of the server swears that the time zone is already set to
Australia / Sydney
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Thursday, 21 August 2003 17:11
To: [EMAIL PROTECTED]
Subject: Re: [PHP] unexpected date results
* Thus wrote Cody Phanekham ([EMAIL PROTECTED]):
Curt,
The admin that is in charge of the server swears that the time zone is already set
to Australia / Sydney
It is definately a system problem. I actually looked at the source
code for the date() function and all it does is get the time
On 21 August 2003 08:11, Cody Phanekham wrote:
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Thursday, 21 August 2003 17:11
To: [EMAIL PROTECTED]
Subject: Re: [PHP] unexpected date results
* Thus wrote Cody Phanekham ([EMAIL PROTECTED]):
?
$t
Curt/Mike,
-Original Message-
From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]
date '+%c'# might be different -- check your man date
the date returned was correct...
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
putenv('TZ=Australia/Sydney');
The reason for the difference is due to the timezone bit (or whatever it's
called..)
Note the +1000 in this line
time = Thu, 21 Aug 2003 15:28:36 +1000
and the + in this line
time = Thu, 21 Aug 2003 05:28:42 +
so both are actually the same times (bar a few seconds..)
But
6 matches
Mail list logo