Page 1 of 1
japan standard time
Posted: Thu Oct 01, 2009 5:40 am
by habib009pk
Dear Friends
Any Code for Japan Standard Time???
Regards
Re: japan standard time
Posted: Thu Oct 01, 2009 5:52 am
by habib009pk
Actually My server placed in America and i want to get the record according to the date of Japan
when i gave the date function in php so date will be taken but there is little time difference between japan date and america date so this time difference effect the query of sql order by date wise
So kindly give me the code which give the Japan Standard date time in php
which i run on any server and it gave me the japan standard date and time.
Thanks and regards
Re: japan standard time
Posted: Thu Oct 01, 2009 7:09 am
by habib009pk
I Got the solution through this code
date_default_timezone_set('Asia/Tokyo');
$jst=date('Y-m-d');