RE: [PHP] mktime() problem
| From: | james dot fairbairn at bt dot com | Date: | Tue, 23 Oct 2001 13:01:46 +0000 |
| Subject: | RE: [PHP] mktime() problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-71937@lists.php.net to get a copy of this message | ||
Oh dear, I still get -3600 when I do
echo gmmktime(0,0,0,1,1,1970);
Why?
James
-----Original Message-----
From: Fairbairn,J,James,IVLH4 C
Sent: 23 October 2001 13:57
To: php-general@lists.php.net
Subject: RE: [PHP] mktime() problem
Thanks, I'll use gmmktime() from now on!
James
-----Original Message-----
From: DL Neil [mailto:PHPml@DandE.HomeChoice.co.uk]
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
write
> 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?
James,
Had to worry about this too!
Try comparing gmmktime() and mktime().
Regards,
=dn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net