config(login): Stadt-NexVerse DST auf Europe/Berlin (MEZ/MESZ) umstellen (#352)

* config(login): use Berlin DST rules for Stadt-NexVerse login

* config(login): use Berlin DST rules for Stadt-NexVerse login

* config(login): use Berlin DST rules for Stadt-NexVerse login

* config(login): use Berlin DST rules for Stadt-NexVerse login

* docs(login): clarify Berlin DST flag vs Firestorm Pacific clock

* docs(login): clarify Berlin DST flag vs Firestorm Pacific clock

* docs(login): clarify Berlin DST flag vs Firestorm Pacific clock

* docs(login): clarify Berlin DST flag vs Firestorm Pacific clock

* test/docs(login): check Berlin DST login policy and explain viewer limitations

* test/docs(login): check Berlin DST login policy and explain viewer limitations

* ci(login): protect Berlin DST configuration in NexVerse HG deployment
This commit is contained in:
OpenGenesis (MPL 2.0) authored and GitHub committed 2026-10-30 16:31:15 +01:00
1 parent 8a6c10275c
commit 08bf15f306
7 files changed
+116 -4

No files matched your search

+4
View File
@@ -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
+4 -1
View File
@@ -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
+4 -1
View File
@@ -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
+4 -1
View File
@@ -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
+4 -1
View File
@@ -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
+57
View File
@@ -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.
+39
View File
@@ -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")