You are here: Re: Help: Date function not returning correct date & time « PHP Programming Language « IT news, forums, messages
Re: Help: Date function not returning correct date & time

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация