habib009pk Posted October 1, 2009 Share Posted October 1, 2009 Dear Friends Any Code for Japan Standard Time??? Regards Link to comment https://forums.phpfreaks.com/topic/176160-solved-japan-standard-time/ Share on other sites More sharing options...
Mchl Posted October 1, 2009 Share Posted October 1, 2009 What exactly are you asking for? Link to comment https://forums.phpfreaks.com/topic/176160-solved-japan-standard-time/#findComment-928337 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 Link to comment https://forums.phpfreaks.com/topic/176160-solved-japan-standard-time/#findComment-928342 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. Link to comment https://forums.phpfreaks.com/topic/176160-solved-japan-standard-time/#findComment-928344 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 Link to comment https://forums.phpfreaks.com/topic/176160-solved-japan-standard-time/#findComment-928355 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 Link to comment https://forums.phpfreaks.com/topic/176160-solved-japan-standard-time/#findComment-928372 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.