diff --git a/.github/workflows/nexjast-ci.yml b/.github/workflows/nexjast-ci.yml index 94ede839..5a016f0e 100644 --- a/.github/workflows/nexjast-ci.yml +++ b/.github/workflows/nexjast-ci.yml @@ -174,6 +174,10 @@ jobs: shell: bash run: python3 tools/ci/verify_hg_deployment_endpoints.py + - name: Verify Stadt-NexVerse Berlin login DST configuration + shell: bash + run: python3 tools/ci/verify_nexverse_berlin_dst.py + - name: Verify simulator runtime profile shell: bash run: python3 tools/ci/verify_simulator_runtime_profile.py diff --git a/bin/Robust.HG.OGLAsset.ini.example b/bin/Robust.HG.OGLAsset.ini.example index 2298424a..9aca3923 100644 --- a/bin/Robust.HG.OGLAsset.ini.example +++ b/bin/Robust.HG.OGLAsset.ini.example @@ -660,7 +660,10 @@ ;; "local" use the server's only timezone to calculate DST. This is previous OpenSimulator behaviour. ;; "America/Los_Angeles;Pacific Standard Time" use these timezone names to look up Daylight savings. ;; 'America/Los_Angeles' is used on Linux/Mac systems whilst 'Pacific Standard Time' is used on Windows - DSTZone = "America/Los_Angeles;Pacific Standard Time" + ;; Stadt-NexVerse: use German CET/CEST transition rules for the login DST flag. + ;; WARNING: the standard Firestorm viewer clock still interprets this as + ;; Pacific time; changing DSTZone does NOT transmit the Berlin UTC offset. + DSTZone = "Europe/Berlin;W. Europe Standard Time" ;; If the region requested at login is not found and there are no default or fallback regions ;; online or defined in section [GridService], try to send user to any region online diff --git a/bin/Robust.HG.ini b/bin/Robust.HG.ini index 507054fd..dee581db 100644 --- a/bin/Robust.HG.ini +++ b/bin/Robust.HG.ini @@ -610,7 +610,10 @@ ;; "local" use the server's only timezone to calculate DST. This is previous OpenSimulator behaviour. ;; "America/Los_Angeles;Pacific Standard Time" use these timezone names to look up Daylight savings. ;; 'America/Los_Angeles' is used on Linux/Mac systems whilst 'Pacific Standard Time' is used on Windows - DSTZone = "America/Los_Angeles;Pacific Standard Time" + ;; Stadt-NexVerse: use German CET/CEST transition rules for the login DST flag. + ;; WARNING: the standard Firestorm viewer clock still interprets this as + ;; Pacific time; changing DSTZone does NOT transmit the Berlin UTC offset. + DSTZone = "Europe/Berlin;W. Europe Standard Time" ;; If the region requested at login is not found and there are no default or fallback regions ;; online or defined in section [GridService], try to send user to any region online diff --git a/bin/Robust.HG.ini.example b/bin/Robust.HG.ini.example index 133bfda7..a464a02a 100644 --- a/bin/Robust.HG.ini.example +++ b/bin/Robust.HG.ini.example @@ -614,7 +614,10 @@ ;; "local" use the server's only timezone to calculate DST. This is previous OpenSimulator behaviour. ;; "America/Los_Angeles;Pacific Standard Time" use these timezone names to look up Daylight savings. ;; 'America/Los_Angeles' is used on Linux/Mac systems whilst 'Pacific Standard Time' is used on Windows - DSTZone = "America/Los_Angeles;Pacific Standard Time" + ;; Stadt-NexVerse: use German CET/CEST transition rules for the login DST flag. + ;; WARNING: the standard Firestorm viewer clock still interprets this as + ;; Pacific time; changing DSTZone does NOT transmit the Berlin UTC offset. + DSTZone = "Europe/Berlin;W. Europe Standard Time" ;; If the region requested at login is not found and there are no default or fallback regions ;; online or defined in section [GridService], try to send user to any region online diff --git a/bin/Robust.ini.example b/bin/Robust.ini.example index aad37525..b177b026 100644 --- a/bin/Robust.ini.example +++ b/bin/Robust.ini.example @@ -515,7 +515,10 @@ ;; "local" use the server's only timezone to calculate DST. This is previous OpenSimulator behaviour. ;; "America/Los_Angeles;Pacific Standard Time" use these timezone names to look up Daylight savings. ;; 'America/Los_Angeles' is used on Linux/Mac systems whilst 'Pacific Standard Time' is used on Windows - DSTZone = "America/Los_Angeles;Pacific Standard Time" + ;; Stadt-NexVerse: use German CET/CEST transition rules for the login DST flag. + ;; WARNING: the standard Firestorm viewer clock still interprets this as + ;; Pacific time; changing DSTZone does NOT transmit the Berlin UTC offset. + DSTZone = "Europe/Berlin;W. Europe Standard Time" ;; If the region requested at login is not found and there are no default or fallback regions ;; online or defined in section [GridService], try to send user to any region online diff --git a/doc/NexVerse/LOGIN_DST_BERLIN.md b/doc/NexVerse/LOGIN_DST_BERLIN.md new file mode 100644 index 00000000..d63fafe3 --- /dev/null +++ b/doc/NexVerse/LOGIN_DST_BERLIN.md @@ -0,0 +1,57 @@ +# Stadt-NexVerse – Login-DST-Zone Europe/Berlin + +Die OpenGenesisLINK-Login-Konfiguration fuer die Stadt-NexVerse-Grid- +Installation verwendet deutsche Sommer-/Winterzeitregeln. + +```ini +[LoginService] + DSTZone = "Europe/Berlin;W. Europe Standard Time" +``` + +- `Europe/Berlin` ist der IANA-Zeitzonenname fuer Linux/.NET. +- `W. Europe Standard Time` ist der passende Windows-Zeitzonenname. +- Winter: **MEZ (UTC+1)**. Sommer: **MESZ (UTC+2)**. +- Beide Namen werden von `LLLoginResponse` der Reihe nach versucht. + Der Login-Service berechnet damit das boolesche + `daylight_savings`-Kennzeichen fuer einen **neuen Login**. + +## Wichtige Grenze fuer Firestorm + +Ein normaler Firestorm-Viewer bekommt ueber diese Loginantwort +**keine** vollstaendige Zeitzonenkennung und keinen UTC-Offset +fuer Berlin. `DSTZone` aendert deshalb nicht die Viewer-Uhr +von PST/PDT in MEZ/MESZ. Die Anzeige kann beim Wechsel auf +europaeische Sommerzeit (vor oder nach dem US-Wechsel) eine Stunde +von der gewohnten Pacific-Time-Darstellung abweichen. + +Ein echtes `MEZ/MESZ`-Label mit Berliner Uhrzeit oben im Viewer +muesste im Viewer selbst (z. B. OGL-Viewer-Fork) integriert werden. +Das Serverflag darf nicht als Beleg fuer eine solche Funktion +missverstanden werden. + +## Aktivierung auf der produktiven Installation + +1. Auf dem ROBUST-Host die **tatsaechlich geladene** + `bin/Robust.HG.ini` pruefen. Sie kann lokale Aenderungen + enthalten, die bei einem `git pull` nicht ueberschrieben + werden duerfen. +2. Im Abschnitt `[LoginService]` die Zeile oben setzen. +3. **Nur ROBUST** neu starten. Regionen muessen dafuer nicht + pauschal neu gestartet werden. +4. Firestorm neu anmelden, da `daylight_savings` nur beim + Login uebermittelt wird. Viewer-Anzeige als Pacific Time + behandeln, nicht als Berliner Uhrzeit. + +Die Systemuhr muss NICHT auf Berliner Zeitzone gestellt werden, +damit `DSTZone` richtig funktioniert. Die bisherigen OGLWeather-, +NexTransit-, NexSmartLight- und OGLEnergy-Konfigurationen mit +`TimeZone=Europe/Berlin` sind unabhaengig und bleiben unveraendert. + +## CI + +```bash +python3 tools/ci/verify_nexverse_berlin_dst.py +``` + +Das prueft die aktiven Login-Konfigurationen sowie CET/MESZ +im Winter und Sommer. Es ersetzt keinen manuellen Firestorm-Test. diff --git a/tools/ci/verify_nexverse_berlin_dst.py b/tools/ci/verify_nexverse_berlin_dst.py new file mode 100644 index 00000000..720d11e5 --- /dev/null +++ b/tools/ci/verify_nexverse_berlin_dst.py @@ -0,0 +1,39 @@ +#!/usr/bin/env python3 +"""Guard against accidental reversion of the NexVerse login DST policy. + +DSTZone changes the DST *flag* in the LLLoginResponse. It must not +silently alter the viewer's PST/PDT clock or unrelated simulator time. +""" +from pathlib import Path +from datetime import datetime, timezone +from zoneinfo import ZoneInfo + +root = Path(__file__).resolve().parents[2] +expected = 'DSTZone = "Europe/Berlin;W. Europe Standard Time"' +for relative in ( + "bin/Robust.HG.ini", + "bin/Robust.HG.ini.example", + "bin/Robust.HG.OGLAsset.ini.example", + "bin/Robust.ini.example", +): + content = (root / relative).read_text(encoding="utf-8-sig") + section = content.split("[LoginService]", 1)[1].split("\n[", 1)[0] + assignments = [line.strip() for line in section.splitlines() + if line.strip().startswith("DSTZone =")] + assert assignments == [expected], (relative, assignments) + +login = (root / "OpenSim/Services/LLLoginService/LLLoginService.cs").read_text( + encoding="utf-8-sig") +response = (root / "OpenSim/Services/LLLoginService/LLLoginResponse.cs").read_text( + encoding="utf-8-sig") +assert 'm_LoginServerConfig.GetString("DSTZone"' in login +assert "DSTZone.Split(';')" in response +assert "TimeZoneInfo.FindSystemTimeZoneById(tzName)" in response +assert 'loginFlagsHash["daylight_savings"] = DST;' in response + +berlin = ZoneInfo("Europe/Berlin") +winter = datetime(2026, 1, 15, 12, tzinfo=timezone.utc).astimezone(berlin) +summer = datetime(2026, 7, 15, 12, tzinfo=timezone.utc).astimezone(berlin) +assert winter.utcoffset().total_seconds() == 3600 and not winter.dst() +assert summer.utcoffset().total_seconds() == 7200 and summer.dst() +print("NexVerse Berlin Login DST: config and CET/CEST transitions PASS")