Zum Hauptinhalt springen

Zeiteinstellungen

Zeitzone, Zeitformat und Datumsformat.


GET /api/setting/time

Response

{
"Timezone": "8",
"TimeFormat": 24,
"DateFormat": "DD-MM-YYYY"
}
FeldTypBedeutung
Timezonestring (float OK)Offset von UTC in Stunden. Unterstützt Dezimalstellen (z.B. 5.5, -3.5).
TimeFormatinteger12 oder 24.
DateFormatstringEiner von "DD-MM-YYYY", "MM-DD-YYYY", "YYYY-MM-DD".

POST /api/setting/time

Partielles Update.

Request

{
"Timezone": "5.5",
"TimeFormat": 12,
"DateFormat": "YYYY-MM-DD"
}

Response

200 OK mit Body OK. Zeitänderungen werden sofort wirksam (die Geräteuhr wendet den neuen POSIX-TZ-String ohne NTP-Neusynchronisation an).

Beispiel

curl -X POST http://192.168.1.42/api/setting/time \
-H "Content-Type: application/json" \
-d '{"Timezone":"-3.5","TimeFormat":24}'