matt0268 Posted October 6, 2012 Share Posted October 6, 2012 Currently i have $today = time(); How can i make it the webhost server time? or make it set to est time? I don't want it like time(); - 32000 as people in germany it would be different for example. How can i set it to like $today = esttime or somthing Quote Link to comment https://forums.phpfreaks.com/topic/269166-timings/ Share on other sites More sharing options...
matt0268 Posted October 6, 2012 Author Share Posted October 6, 2012 Also represent the time in the form of e.g Sat Oct 6 08:17:56 2012 Quote Link to comment https://forums.phpfreaks.com/topic/269166-timings/#findComment-1383242 Share on other sites More sharing options...
kicken Posted October 6, 2012 Share Posted October 6, 2012 Check into the DateTime and DateTimeZone objects. That will let you adjust the server's time into a user's timezone. Quote Link to comment https://forums.phpfreaks.com/topic/269166-timings/#findComment-1383314 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.