Companion app does not sync phone timezone offset to device

Offen
#3,876 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
58/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
c
Bereich
mobile

Rechercherichtung

Start by locating the companion app's connection flow where it sends CMD_SET_DEVICE_TIME, then check how that flow uses CMD_RUN_CLI_COMMAND. Send the phone's current numeric timezone offset with set tz.offset; the issue says no protocol change is needed. Done means a device with UI_SHOW_CLOCK displays the phone's local time after connecting, including the current DST offset.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

The companion app sets the device's UTC time on connect but never sends the phone's timezone or DST state. If UI_SHOW_CLOCK is enabled on devices with display, then the time we see differs from ones phone's time. The firmware has a manual tz.offset preference, so fresh devices display UTC until the user runs set tz.offset through the CLI. This however seems worth of being set automatically, as typically users are not going to be in GMT00

Minimal fix could be: after CMD_SET_DEVICE_TIME, send set tz.offset <offset> via the existing CMD_RUN_CLI_COMMAND. No protocol change needed. A dedicated offset field in the time update would be cleaner long term.

The app can compute the current offset, including DST, so the device only needs a fixed numeric offset for display.

Vorherrschende Sprache
C
Sterne
3.9k
Forks
1.5k
Ø Merge
2 T. 19 Std.
Gemergte PRs (30 T.)
61

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus meshcore-dev/MeshCore

Alle Issues in meshcore-dev/MeshCore

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.