ted_chou12 Posted December 12, 2006 Share Posted December 12, 2006 Because me and my host have 12 hours of time zone difference, therefore, I am having some headaches, due to the frequent use of the php 'time' function, so i wish there could be a very simple way to resolve this proble, anybody got any ideas?Thankyou.Ted - 2 Q today. Link to comment https://forums.phpfreaks.com/topic/30377-time-zone-difference/ Share on other sites More sharing options...
hitman6003 Posted December 12, 2006 Share Posted December 12, 2006 add / subtract the number of seconds in 12 hours (43200) to your time value...[code]$current_time = time() - 43200;[/code] Link to comment https://forums.phpfreaks.com/topic/30377-time-zone-difference/#findComment-139785 Share on other sites More sharing options...
ted_chou12 Posted December 12, 2006 Author Share Posted December 12, 2006 oh, thankyou! Link to comment https://forums.phpfreaks.com/topic/30377-time-zone-difference/#findComment-139791 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.