PDA

View Full Version : set time zone for date



kitaeshi
April 1st, 2005, 11:26 PM
Hi all, i was working on a form sheet using php coding tat user will fillup the detail online n email back to me.

But there is one problems, i set a date inside the php code so that i will know when the user email to me, but the time zone is different

So is there anyway to specifiy the timezone in php.. like those GM+800 something like that..

Thxs for viewing

Cheers

T-O
April 2nd, 2005, 02:26 AM
The special time zone in PHP is GMT.


http://www.wdvl.com/Authoring/Languages/PHP/Date_Time/index.html
If your looking to get the time the user sent you the email best to use localtime();