Companion app does not sync phone timezone offset to device

Đang mở
#3,876 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
58/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c
Lĩnh vực
mobile

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C
Star
3.9k
Fork
1.5k
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
61

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của meshcore-dev/MeshCore

Tất cả issue của meshcore-dev/MeshCore

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.