habib009pk Posted October 1, 2009 Share Posted October 1, 2009 Dear Friends Any Code for Japan Standard Time??? Regards Quote Link to comment Share on other sites More sharing options...
Mchl Posted October 1, 2009 Share Posted October 1, 2009 What exactly are you asking for? Quote Link to comment Share on other sites More sharing options...
habib009pk Posted October 1, 2009 Author Share Posted October 1, 2009 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 Quote Link to comment Share on other sites More sharing options...
Bricktop Posted October 1, 2009 Share Posted October 1, 2009 Hi habib009pk, have a look at the Data manual at http://us.php.net/manual/en/function.date.php There are specific characters available to specify a timezone. Or you can +/- time to manually match your timezone. Hope this helps. Quote Link to comment Share on other sites More sharing options...
Mchl Posted October 1, 2009 Share Posted October 1, 2009 Also see: http://us.php.net/manual/en/function.date-default-timezone-set.php and http://us.php.net/manual/en/timezones.php Quote Link to comment Share on other sites More sharing options...
habib009pk Posted October 1, 2009 Author Share Posted October 1, 2009 Thanks for all but especial for Mchl who help me in getting the solution, I Got the solution through this code date_default_timezone_set('Asia/Tokyo'); $jst=date('Y-m-d'); Thanks alot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.