[PHP] Re: Time zone in date function

2012-01-31 Thread Jonesy
On Tue, 31 Jan 2012 17:15:48 +0100, Matijn Woudt wrote: > On Tue, Jan 31, 2012 at 4:22 PM, Jonesy wrote: >> >> Is there a reason _not_ to use viz: >> >>        putenv("TZ=America/Anguilla"); >>  ?? >> >> Or, is it simple "Just The Linux Way"(tm) , i.e. there's >> always more than one way to do a '

Re: [PHP] Re: Time zone in date function

2012-01-31 Thread Matijn Woudt
On Tue, Jan 31, 2012 at 4:22 PM, Jonesy wrote: > On Tue, 31 Jan 2012 14:57:41 +1300, Simon J Welsh wrote: >> On 31/01/2012, at 2:55 PM, Ron Piggott wrote: >> >>> >>> On my clients account when I use ?echo date(?D, d M Y H:i:s');? the output >>> is 5 hours ahead of us.  How do I change it to my lo

[PHP] Re: Time zone in date function

2012-01-31 Thread Jonesy
On Tue, 31 Jan 2012 14:57:41 +1300, Simon J Welsh wrote: > On 31/01/2012, at 2:55 PM, Ron Piggott wrote: > >> >> On my clients account when I use ?echo date(?D, d M Y H:i:s');? the output >> is 5 hours ahead of us. How do I change it to my local time? Is there a >> way to specify ?Eastern? tim

[PHP] Re: Time zone in date function

2012-01-31 Thread Ian
On 31/01/2012 01:55, Ron Piggott wrote: > > On my clients account when I use “echo date(‘D, d M Y H:i:s');” the output is > 5 hours ahead of us. How do I change it to my local time? Is there a way to > specify “Eastern” time zone? > > I expect this would work: > > echo date(‘D, d M Y H:i:s'