japan standard time

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
habib009pk
Forum Commoner
Posts: 43
Joined: Sun Jul 05, 2009 11:28 pm

japan standard time

Post by habib009pk »

Dear Friends

Any Code for Japan Standard Time???

Regards
habib009pk
Forum Commoner
Posts: 43
Joined: Sun Jul 05, 2009 11:28 pm

Re: japan standard time

Post 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
habib009pk
Forum Commoner
Posts: 43
Joined: Sun Jul 05, 2009 11:28 pm

Re: japan standard time

Post by habib009pk »

I Got the solution through this code

date_default_timezone_set('Asia/Tokyo');
$jst=date('Y-m-d');
Post Reply