Companion app does not sync phone timezone offset to device

オープン
#3,876 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
58/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
c
領域
mobile

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C
スター
3.9k
フォーク
1.5k
平均マージ
2日 19時間
マージ済み PR(30日)
61

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

meshcore-dev/MeshCore のほかの issue

meshcore-dev/MeshCore の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。