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. Quote Link to comment 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] Quote Link to comment Share on other sites More sharing options...
ted_chou12 Posted December 12, 2006 Author Share Posted December 12, 2006 oh, thankyou! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.