Re: [PHP] date() and timezone
- From: jochem@xxxxxxxxxxxxx (Jochem Maas)
- Date: Thu, 14 Dec 2006 20:14:09 +0100
Fernando M. M. wrote:
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?
yes. I suggest you actually following the given links and read what's there -
that's what I did to answer your question and in doing so also found the answer
your above question.
.
Fernando M. M. wrote:important
Hello,
I have a lot of php scripts that uses date() for some
which is on anoperations. Yesterday those scripts were moved to another server
aren't working anymore. Thedifferent timezone. I haven't predicted this so my scripts
Is there a way to change the defaultservers timezone is GMT -4 and mine is GMT -2.
folder? And what about changing just one?timezone for all scripts within a
it depends on whatversion 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 thispage and search
for 'TZ':http://php.net/manual/en/ref.datetime.php)
I
appreciate any help.
Thanks,
Fernando.
- References:
- date() and timezone
- From: "Fernando M. M."
- Re: [PHP] date() and timezone
- From: Jochem Maas
- Re: [PHP] date() and timezone
- From: "Fernando M. M."
- date() and timezone
- Prev by Date: Re: [PHP] date() and timezone
- Next by Date: Re: date() and timezone
- Previous by thread: Re: [PHP] date() and timezone
- Next by thread: Re: date() and timezone
- Index(es):
Relevant Pages
|