Posted by Chris Hope on 05/29/05 01:34
mX wrote:
> Yes, date() returns GMT date by default, I think.
>
> UK and Portugal (where I live) are placed on the GMT line, that's why
> you are getting that.
>
> There is a function on php, which returns de date of the server...
> I'll try to look for it.
gmdate() does it in GMT. date() does it in the local time of the server.
From the manual http://www.php.net/date
"Returns a string formatted according to the given format string using
the given integer timestamp or the current local time if no timestamp
is given."
--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
[Back to original message]
|