|
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]
|