a_bertrand Posted June 5, 2013 Share Posted June 5, 2013 Indeed something is not correct but it's more than likely not correct on your server. My server all run with the local time zone, not UTC. If you leave UTC in the engine, make sure your server is as well set as UTC. You could try to change the timezone of the engine by editing the config key default Time Zone from the admin panel. Quote Link to comment Share on other sites More sharing options...
DungeonMaster Posted June 5, 2013 Author Share Posted June 5, 2013 Please read what I said: Server is UTC and also Mysql, also in the game registers UTC This needs to work no matter the timezone the user is in. Test by changing your timezone to UTC and the server as well and I bet you will get the same problem. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted June 5, 2013 Share Posted June 5, 2013 I cannot change the timezone, I have other things running on. And the issue is due probably to PHP reading the mysql timestamp and adding the timezone... I hardly see how it could be different otherwise. Quote Link to comment Share on other sites More sharing options...
DungeonMaster Posted June 5, 2013 Author Share Posted June 5, 2013 I am surprised this isn't being done with PHP timestamp because then when coding you know that 15 minutes ago is the same for you and me no matter what the time zone! The script is checking the time as though the end user has the same time as the server - not correct. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted June 5, 2013 Share Posted June 5, 2013 Well, you are the first with this issue. I prefer working with MySQL data types because you can do a select and read back the correct value and not just a number. I could check if I manage to make MySQL tell me the time difference in sec, such that we don't have this issue anymore. Quote Link to comment Share on other sites More sharing options...
DungeonMaster Posted June 5, 2013 Author Share Posted June 5, 2013 Well as I keep saying I could edit this and I could make major changes but then if I keep editing things that I feel are basic to the system I will lose out on any future upgrades or in other words give me more and more work which I am trying to avoid. If you haven't noticed, the issues I always bring up is not about game play, it is the basic stuff like login, membership accounts, etc. I do know that it is up to me to customize the game but I expect the engine to work regardless of timezone, and so forth as these things seem to be basic elements of any script. I already have a heavy work load customizing it to how I want it but these are basic issues with login and you will face this issue with future users who do not keep the same time zone as their server. I guess most people cater for games within their time zone - I cater for the world. Therefore in general I code my own sites based on time because time for you and me are always the same based on minutes ago, hours, ago, etc. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted June 5, 2013 Share Posted June 5, 2013 Ok changed the way the time is read back. Check it. Quote Link to comment Share on other sites More sharing options...
DungeonMaster Posted June 5, 2013 Author Share Posted June 5, 2013 Works perfectly and so does the number of tries. This also resolves other issues that were being affected by time - thank you for your due diligence in making the code universal. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted June 5, 2013 Share Posted June 5, 2013 NP. Actually the lock time was working but not the display. 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.