HITMAN 17 Posted October 31, 2008 Posted October 31, 2008 Re: Time isnt there a better way like changing the whold game time to uk time Quote
Tezza` Posted October 31, 2008 Posted October 31, 2008 Re: Time I had a one from www.php.net ages ago which related to your pc clock time.... so if you where in uk you would see that time... if in america would see that time.. was pretty sweet. Quote
Tonka Posted October 31, 2008 Posted October 31, 2008 Re: Time get a VPS or dedicated server and your able to change your timezone, other than that you'll need to go to the link Luke posted www.php.net/date and change the format before it's outputted to the user as for a clock set to the users time it's better to have a game clock that is set to the server time so that way people know when the new day is Quote
Floydian Posted October 31, 2008 Posted October 31, 2008 Re: Time Timezone setting is a php ini setting believe it or not. And if you don't have that php ini setting set (ie, you're depending on the servers time zone) then everytime you use a time/date function, you're getting E_NOTICE errors in PHP >= 5 (It might be like this in PHP 4, but don't quote me on that). Here's how you set the time zone programatically: // Time zone is set here. date_default_timezone_set('America/New_York'); Quote
-Matt- Posted October 31, 2008 Posted October 31, 2008 Re: Time put it to your host time for crons. if everone is having there PC time. Then friends might want to meat up at like 11pm game time but on 1 PC its 11pm and other 3am Dunno how old this topic is. Quote
Zeggy Posted November 11, 2008 Posted November 11, 2008 Re: Time If you just want time at GMT, you can use gmdate(). If you want to show more than one timezone on one page, you can use floydian's suggestion of date_default_timezone_set and the function setTimezone to set timezones for date objects. Quote
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.