[PHP] Re: DateTime using DateTimeZone Timestamp problem

2011-04-05 Thread Ian
On 05/04/2011 10:11, Simon J Welsh wrote: > On 5/04/2011, at 3:35 AM, Ian wrote: > >> Hi, >> >> I have a problem using the php built in classes DateTime and DateTimeZone. >> >> The idea behind the following code is to return the timestamp for the >> current time in Singapore (or other places). Wh

[PHP] Re: DateTime using DateTimeZone Timestamp problem

2011-04-05 Thread Ian
On 04/04/2011 18:02, Ashley Sheridan wrote: > > What do you mean it only returns the timestamp for the local system? Did > you want PHP to know what time the visitors are on? PHP won't know about > that, all you can do is set the timezone for the script based on some > information you're receivi