Re: [PHP] unexpected date results

2003-08-21 Thread Curt Zirzow
* 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

RE: [PHP] unexpected date results

2003-08-21 Thread Cody Phanekham
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

Re: [PHP] unexpected date results

2003-08-21 Thread Curt Zirzow
* 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

RE: [PHP] unexpected date results

2003-08-21 Thread Ford, Mike [LSS]
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

RE: [PHP] unexpected date results

2003-08-21 Thread Cody Phanekham
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');

[PHP] unexpected date results

2003-08-20 Thread Cody Phanekham
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();

RE: [PHP] unexpected date results

2003-08-20 Thread Martin Towell
..) 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