legohead6 Posted February 21, 2007 Share Posted February 21, 2007 how do i do this? Quote Link to comment Share on other sites More sharing options...
legohead6 Posted February 21, 2007 Author Share Posted February 21, 2007 like taking the date(); function and subtract hours and minutes? Quote Link to comment Share on other sites More sharing options...
tom100 Posted February 21, 2007 Share Posted February 21, 2007 Are you trying to get the users local time? If so, you will need to get the users timezone or use javascript. Quote Link to comment Share on other sites More sharing options...
legohead6 Posted February 21, 2007 Author Share Posted February 21, 2007 no change the hole site to my local time Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 21, 2007 Share Posted February 21, 2007 You'd have to change the server's time - if you're on a shared server, you won't be able to. You could just make sure to subtract/add the right number of seconds to any timestamp, or just use the time it's on... Quote Link to comment Share on other sites More sharing options...
legohead6 Posted February 21, 2007 Author Share Posted February 21, 2007 how do i add /subtract from a timestamp? Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 21, 2007 Share Posted February 21, 2007 $time = time(); $time = $time-(3600); // One hour earlier. 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.