DELETE-ME-NOW- Posted August 23, 2010 Share Posted August 23, 2010 I know this is prob VERY nooby, but how do you change the time in your game? (game time) Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted August 23, 2010 Share Posted August 23, 2010 you wish to change the time displayed ?? Quote Link to comment Share on other sites More sharing options...
DELETE-ME-NOW- Posted August 23, 2010 Author Share Posted August 23, 2010 yea Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted August 23, 2010 Share Posted August 23, 2010 to what? your local time?? most games will display the server time so depending on where your server is that will be the time displayed. You can change it though. You will need to state to what timezone. Quote Link to comment Share on other sites More sharing options...
DELETE-ME-NOW- Posted August 23, 2010 Author Share Posted August 23, 2010 Ahh right. Cos im i want UK time, and its a strange little time its showing up XD Any way you can manualy change it to a time zone? Quote Link to comment Share on other sites More sharing options...
Djkanna Posted August 23, 2010 Share Posted August 23, 2010 date_default_timezone_set('GMT'); Source: PHP Manual: Date Or <?php $timezone = new DateTimeZone( "Europe/London" ); $date = new DateTime(); $date->setTimezone( $timezone ); echo $date->format( 'H:i:s A / D, M jS, Y' ); ?> Source: PHP Manual: Date(comments) Just Two ways you can do it. Quote Link to comment Share on other sites More sharing options...
DELETE-ME-NOW- Posted August 24, 2010 Author Share Posted August 24, 2010 Ah ok then. Thanks alot bud :D 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.