RE: [PHP] Re: mktime() problem
| From: | james dot fairbairn at bt dot com | Date: | Tue, 23 Oct 2001 12:56:38 +0000 |
| Subject: | RE: [PHP] Re: mktime() problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-71935@lists.php.net to get a copy of this message | ||
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:liljim@liljim.co.uk]
Sent: 23 October 2001 13:53
To: php-general@lists.php.net
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: 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