Re: [PHP] date() and timezone



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:
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.





.



Relevant Pages

  • Re: PHP 5.0.1 IIS 5 Win 2K AS
    ... IUSR has full control of the c:\php folder as permissions to the processor ... folder for the scripts. ... Norton's blocking the scripts as far as I know. ... Anyway, there's av, sure, but if it was blocking the php scripts, there ...
    (microsoft.public.inetserver.iis)
  • Re: [PHP] date() and timezone
    ... I´m using php5 here. ... is there a way to set something on .htaccess to change the timezone? ... I have a lot of php scripts that uses datefor some ...
    (php.general)
  • Re: Cant copy .exe to Startup Scripts Folder on DC
    ... Not sure "scripts\startup folder for an OU" means; do you mean the scripts folder for the particular GPO? ... In Group Policy Editor, in Windows Settings, Scripts, double click Logon, Logoff, Startup or Shutdown as appropriate. ... Microsoft Global Technical Support Center ... | Subject: RE: Can't copy .exe to Startup Scripts Folder on DC ...
    (microsoft.public.windows.group_policy)
  • Re: can not create folder called scripts anymore
    ... There are already scripts folder everywhere..but they are ... Something in windows itself seems to hide and block everything called ...
    (microsoft.public.win2000.general)
  • Re: Automating details view?
    ... untick saving individual folder view and set the folder view ... then set what I want and reboot. ... It's just that the Win+E key combination and my many scripts use WE ... WE replacement. ...
    (microsoft.public.windowsxp.basics)