1. Games
  2. Login
  3. Register
  4. Support
  5. 00:05:18
  6. en

moonID.net - Please discuss stuff about moonID hereBug reports → Time Zone Settings are wrong.

Zhenriel
avatar
Posted April 2, 2024, 7:32 p.m.

Like the title says, the time zone settings don't show the correct time, and if you hover over the time of a battle report in the courier, it shows a different local time than the one in the settings.

GMT itself seems to be off by 1 hour if it's on Automatic, and by 2 hours if it's on Summer.

Show comments (2)
LordWrona
avatar
Posted April 4, 2024, 10:44 a.m.

Same story every time shift XD

aszlig CRATR.games
avatar
Posted April 4, 2024, 1:23 p.m.

You're right, this is a longstanding bug that should only affect display in the profile settings. However, times that are displayed everywhere else should be calculated correctly1.

Depending on how involving a possible fix for this will be, we'll either fix this or simply remove the bit in the profile settings since displaying the wrong time is just confusing without adding any benefit.

1 Well... not quite, but "less wrong" (but still wrong) would be better here, since the way we handle "automatic" daylight saving time is based on German rules, which is not a good idea for people living outside of Germany ;-)

Show comments (3)
Zhenriel
avatar
Posted April 4, 2024, 8:37 p.m.

Is that display bug really that hard to fix? It really seems like a minor bug.

I'm not sure how Germany handles DST, but you could just have Standard Time based on GMT, and Summer Time which advances the clock by 1 hour.

So that should be pretty straightfoward. People pick their time zone, and they activate DST as needed.

aszlig CRATR.games
avatar
Posted April 4, 2024, 10:33 p.m.

I'm not sure how Germany handles DST, but you could just have Standard Time based on GMT, and Summer Time which advances the clock by 1 hour.

I wish that it would be that way, but every date/time calculation is done via naive timestamps in localtime and the way the code is structured, there currently is no easy way to get the local offset towards UTC (in the backend).

Zhenriel
avatar
Posted April 5, 2024, 11:18 a.m.

Hmm, alright then. At least the time settings are correct everywhere else despite how they're calculated. But the settings page is weird.

It's like there's an extra calculation or offset somewhere in the code for the text shown there, that moves it back 1 extra hour.

And the functions of Summer and Winter seem to be inverted here based on how it affects the settings number. Summer is 1 hour behind Winter/Standard when it should be the other way around.

Page:  1
You need to login to add a post.

Connecting... Connecting