beboo002 Posted June 10, 2008 Share Posted June 10, 2008 Hello All, My project hosted in Houston, Texas, United States and i am useing unix_timestamp(),curdate(), dayname(curdate()) function in my script now my problem is how can i change this time to UTC/GMT +05:30 and Houston, Texas, United States time is UTC/GMT -05:30 . i am useing PHP4.4.7 and mysql is 4.1. Thanks Beboo Link to comment https://forums.phpfreaks.com/topic/109563-solved-datetimeday-issue/ Share on other sites More sharing options...
craygo Posted June 10, 2008 Share Posted June 10, 2008 take a look here. http://www.expertsrt.com/tutorials/Matt/PHPTimeZone.html Ray Link to comment https://forums.phpfreaks.com/topic/109563-solved-datetimeday-issue/#findComment-561976 Share on other sites More sharing options...
beboo002 Posted June 10, 2008 Author Share Posted June 10, 2008 useing this mathod $x= time(); $t=$x+37800; $date01= date('Y-m-d', $t); $date02= date('l', $t); Link to comment https://forums.phpfreaks.com/topic/109563-solved-datetimeday-issue/#findComment-562072 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.