Companion app does not sync phone timezone offset to device

Abierto
#3,876 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
58/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
c
Área
mobile

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C
Estrellas
3.9k
Forks
1.5k
Merge medio
2 d 19 h
PR fusionados (30 d)
61

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de meshcore-dev/MeshCore

Todos los issues de meshcore-dev/MeshCore

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.