Hi James,

Yes, you're right; I got -3600. But shouldn't the time returned reflect the
timezone we would be in on that date, rather than the one we are in now?

Thanks for your help.

James

-----Original Message-----
From: liljim [mailto:[EMAIL PROTECTED]]
Sent: 23 October 2001 13:53
To: [EMAIL PROTECTED]
Subject: [PHP] Re: mktime() problem


Hi James,

> I'm running 4.0.6 on a Solaris 8 box. The output given by
>
> echo mktime(0,0,0,1,1,1970);
>
> is 3600.
>
> Shouldn't it be 0? My box's locale is set to the UK defaults, so as I
write
> this we are in daylight savings (GMT+1). Would this make a difference? (I
> have already tried

I uploaded the same script to my server which is also running BST (GMT +1) :
the output was as I expected, -3600 (we gained an hour, so had to lose it
somewhere):  are you sure your value wasn't minus 3600 also?


James



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to