[request] --start --end values should consider local timezone

Abierto
#5,673 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
38/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
python, sql

Línea de trabajo

Start by tracing how restatement handles --start and --end values and constructs the start_tstz variables; the issue does not name files or tests. Check how relative times are interpreted and whether timezone input is available, then determine how an optional --tz should affect the week boundary. Done means the boundary reflects the user's timezone rather than always starting at 00:00 UTC.

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

Descripción

Improvement

when restating models with relative time values such as --start "2 weeks ago" for example, the current start_tstz variables are considering the beginning of the week in UTC time, but the is wrong because a relative time is to be interpreted in the eyes of a user and thus the start_tzts should consider the timezone information, at least as a optional input variable --tz for example.

inside the model everything can then be run in UTC but the start tstz should not be at 00:00+00 but rather at 00:00+0x meaning the beginning of the week where the use is located

Lenguaje dominante
Python
Estrellas
3.3k
Forks
471
Merge medio
6 d 7 h
PR fusionados (30 d)
35

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

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 SQLMesh/sqlmesh

Todos los issues de SQLMesh/sqlmesh

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.