* 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');
Ive got a pretty simple script that runs at 5 past midnight. It grabs the local
date/time and processes data based on the date/time. The problem is the date/time
returned by the date() function is incorrect.
here is a sample script (not actual script running on server):
test.php
?
$t = time();
..)
But for the reason why one is showing GMT and the other Oz time, I don't
know...
HTH though
Martin
-Original Message-
From: Cody Phanekham [mailto:[EMAIL PROTECTED]
Sent: Thursday, 21 August 2003 3:42 PM
To: [EMAIL PROTECTED]
Subject: [PHP] unexpected date results
Ive got a pretty simple
7 matches
Mail list logo