You are here: Re: date() function - problem changing timezome « All PHP « IT news, forums, messages
Re: date() function - problem changing timezome

Posted by shannonwhitty on 09/28/75 11:49

Rik wrote:
> Rik wrote:
> > You could do several things. One like the solution you're trying to
> > perform: date("Y-m-d H:i:s", time() + 54000);
>
> And to keep it portable to other servers, with possible other timezones:
>
> $your_timezone = 14400; //I suspect?
> date("Y-m-d H:i:s", time() + ($your_timezone - date("Z"));
>
> Grtz,
> --
> Rik Wasmus

Thanks Rik,

I ended up using the following:

gmdate(\"Y-m-d H:i:s\", time()+36000);

It gave me what I wanted. I just couldn't understand the application
of the Z and could not find any supporting documentation that could
explain.

Your post has made it quite clear - thanks
Shannon

 

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

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