Thanks, I'll use gmmktime() from now on!


-----Original Message-----
From: DL Neil [mailto:[EMAIL PROTECTED]]
Sent: 23 October 2001 13:54
To: Fairbairn,J,James,IVLH4 C; php-general
Subject: Re: [PHP] mktime() problem

> 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
> this we are in daylight savings (GMT+1). Would this make a difference? (I
> have already tried
> echo mktime(0,0,0,1,1,1970,0);
> to force non-daylight-savings, but I still get 3600.) Am I doing something
> wrong, or have I found a bug?

Had to worry about this too!
Try comparing gmmktime() and mktime().

PHP General Mailing List (
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