Forum Moderators: coopster

Message Too Old, No Replies

Adjusting 'dateline' timezone?

         

irock

3:06 pm on Feb 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi, I ran this PHP code, but the time isn't exactly what I hope for.

$dateposted = date("r",$row["dateline"]);

Result: Tue, 15 Feb 2005 23:24:38 -0600

Last time I check, the dateline is 23:24:38 PST. The -0600 seems a bit suspicious to me.

So, I was wondering if I want to set the timezone to PST, what modifications do I have to make?

Thanks.

hakre

1:30 am on Feb 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



since date("r",...) is using the system time, i think you need to set system time settings to PST to get this result.