Re: [PHP] date() and timezone
by Fernando M. M. other posts by this author
Dec 14 2006 10:58AM messages near this date
Re: [PHP] date() and timezone
|
[PHP] learning classes not sure how to do this correctly
I�m using php5 here.
But like i said i have lots of scripts inside this
folder, is there a way to set something on .htaccess to change the timezone?
> Fernando M. M. wrote:
> >
> > Hello,
> >
> > I have a lot of php scripts that uses date() for some
important
> > operations. Yesterday those scripts were moved to another server
which is on an
> > different timezone. I haven't predicted this so my scripts
aren't working anymore. The
> > servers timezone is GMT -4 and mine is GMT -2.
Is there a way to change the default
> > timezone for all scripts within a
folder? And what about changing just one?
>
> it depends on what
version of php.
>
> php5:
http://php.net/manual/en/function.date-default-timezone-set.php
>
http://php.net/manual/en/function.date-timezone-set.php
>
> php4: er
... I believe your stuck with settings the TZ environment var OR doing some
>
gnarly
> hack in userland to account for the difference in timezones. (try this
page and search
> for 'TZ':
>
http://php.net/manual/en/ref.datetime.php)
>
> >
> > I
> > appreciate any help.
> >
> > Thanks,
> >
> > Fernando.
> >
> >
>
>
--
Blog: http://blog.forumdebian.com.br/fernando
Contato:
http://www.forumdebian.com.br/fernando/contato.php
Thread:
Fernando M. M.
Stut
Jochem Maas
Fernando M. M.
|