[php] dates in PHP

Paul jpgorton at gmail.com
Sat Mar 6 08:53:46 EST 2010


Maggie,
for my scripts hosted on USA servers I use

putenv("TZ=Australia/Melbourne");

at the start of my scripts.
seems to work well for me.

Paul.

On 5 March 2010 07:10, Margaret Iaquinto <iaquinto at ozemail.com.au> wrote:
> I use a function to write the date of, say, a transaction to the screen.
>
> The server I lease is in the USA. How do I add 11 hours to the date?
>
> Thanks
>
> Maggie
> _______________________________________________
> http://www.edulists.com.au - FAQ, resources, subscribe, unsubscribe
> PHP Mailing List kindly supported by
> http://www.vcaa.vic.edu.au - Victorian Curriculum and Assessment Authority
> and
> http://www.vitta.org.au  - VITTA Victorian Information Technology Teachers
> Association Inc
>



More information about the php mailing list