3 ms·
Totally and fundamentally wrong. Better use bloody logic. Server-wide events are meant to start/end in sync. This isn't a plain stupid web form. What if some s
by nobodyshere 13y ago
Totally and fundamentally wrong. Better use bloody logic.
Server-wide events are meant to start/end in sync. This isn't a plain stupid web form. What if some smart arse switches time zone to have an event earlier and then end later?
- enneff 13y agoHave the events occur at specific absolute times but show the time in the player's time zone. If they switch zones they see different times, not change the behaviour of the game.
- mattmanser 13y agoFundamentally wrong? That's a really odd thing to say. http://en.wikipedia.org/wiki/Coordinated_Universal_Time http://en.wikipedia.org/wiki/Coordinated_Universal_Time It's not complicated, every language has simple code to change a local time to UTC and back again and it's built in to every computer. It's a solved problem. Most devs who have ever had to deal with dates know to send any user-input to the server with the TZ information attached, to then always store that time in UTC and then translate that for the user, either client-side if you're sending raw data, or asking for a timezone setting and transforming it server-side (if you're sending HTML for example. Browsers, alas, do not tell the server what timezone the request is coming from, which is why all forums ask you for your tz so they can show the correct post time, relative to you). Apart from, seemingly, game devs. How on earth do you think the world has been operating without the basic functionality of being able to talk about an explicit, locale neutral time? To translate a TZ specific date/time to another TZ specific date/time? Banking would be buggered.