Jump to content
MakeWebGames

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Posted

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.

Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...