Dear Friends
Any Code for Japan Standard Time???
Regards
japan standard time
Moderator: General Moderators
-
habib009pk
- Forum Commoner
- Posts: 43
- Joined: Sun Jul 05, 2009 11:28 pm
Re: japan standard time
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
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
I Got the solution through this code
date_default_timezone_set('Asia/Tokyo');
$jst=date('Y-m-d');
date_default_timezone_set('Asia/Tokyo');
$jst=date('Y-m-d');