24 hour

Game: klondike3
Game #: 1244416603
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Window: 1292x590
Locale: nb-NO
JS-Version: 2026-04-09_11:30:52_-0700_f033cc14744b8f814a5f7a8b966bb611c63f903a


Please describe the problem in as much detail as possible:

I would like to see time in 24 hour format for the score. Please :-)

Comments

  • daviddavid REGISTERED, ADMINISTRATORS

    Thanks! That helps a lot. Do you perchance have your OS language set to English?

  • daviddavid REGISTERED, ADMINISTRATORS

    Also, can you go here: https://greenfelt.net/language-test and paste in what it prints out?
    For instance, in my browser I get:

    {
      "navigator": {
        "language": "en-US",
        "languages": [
          "en-US",
          "en"
        ]
      },
      "resolved": {
        "undefined": {
          "locale": "en-US",
          "now": "04/14/2026, 04:26 PM"
        },
        "navigator_language": {
          "locale": "en-US",
          "now": "04/14/2026, 04:26 PM"
        }
      }
    }
    
  • EinpekkarEinpekkar REGISTERED
    edited April 15 143.110.127.99
    {
      "navigator": {
        "language": "nb-NO",
        "languages": [
          "nb-NO",
          "en-GB",
          "nb",
          "no",
          "nn",
          "en-US",
          "en"
        ]
      },
      "resolved": {
        "undefined": {
          "locale": "en-US",
          "now": "04/15/2026, 03:42 PM"
        },
        "navigator_language": {
          "locale": "nb",
          "now": "15.04.2026, 15:42"
        }
      }
    }
    
  • Yes? And what is the message in this? It says 2"now": "15.04.2026, 15:42" So why not in the score?

  • daviddavid REGISTERED, ADMINISTRATORS

    It turns out there are 2 ways to get the language and "locale" used to format the dates according to your local customs: the "undefined" and "navigator_language" entries under "resolved". The difference between the 2 ways is confusingly worded in the standards and works counterintuitively: If you don't pass a locale at all (the "undefined" way) it chooses the language/locale set in the OS preferences. The "navigator_language" method chooses the language/locale that is set in the browser preferences. Furthermore it only behaves in the way I just described on macOS and Linux machines, on Windows it apparently always uses the browser preferences. Yay, browsers :-).

    As you might guess from the results, the high score tables are currently using the "undefined" method. We'll switch that to the "navigator_language" method and it should fix things.

    And thanks for helping us, getting the info from you was extremely useful in understanding the problem.

  • EinpekkarEinpekkar REGISTERED
    edited April 16 143.110.127.99

    Yuhu! It works! But are all the other players from the same time zone as me? I'm in CET.

  • daviddavid REGISTERED, ADMINISTRATORS

    Nope, they're from all around the world. We show them all in your local timezone because otherwise it's quite hard to tell how the times relate to each other.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Attach file
Attach image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file
Home Bug ReportsComment As ...