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/S
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]):
> 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
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] unexpect
* Thus wrote Cody Phanekham ([EMAIL PROTECTED]):
> $t = time();
> echo "\ntimestamp = $t";
> echo "\ntime = " . 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 r
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 pre
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
timestamp = $t";
7 matches
Mail list logo