Re: Local time zone
| From: | Pierre Joye | Date: | Tue, 20 Dec 2011 10:03:45 +0000 |
| Subject: | Re: Local time zone | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-56958@lists.php.net to get a copy of this message | ||
On Tue, Dec 20, 2011 at 1:35 AM, David Muir <davidkmuir@gmail.com> wrote:
> Isn't this whole thread about client-side apps, not server-side. For
> client-side stuff it doesn't make sense to use anything but the system
> tz.
No, that's the job of the PHP application to take care of that. And
that's also why system TZ is not very relevant, per se.
And it is done using the datetime function, see:
http://www.php.net/manual/en/function.date-default-timezone-set.php
http://www.php.net/manual/en/datetime.settimezone.php
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org