[bug]: cycle ending on a daylight saving transition day ends on the next day and blocks the following cycle

Abierto
#10,292 1 comentario 0 reacciones 2 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@vihar ya está trabajando en esto.

Desde el 15/11/2026.

  • #10293 de @fedshaft — abierto
  • #10420 de @avesh-pathak — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

🐛bug plane
Is there an existing issue for this?
  • I have searched the existing issues
Current behavior

A cycle that ends on the day the clocks go forward is stored as ending at 00:59 on the following day, in the project's timezone.

Two things follow:

  • The cycle API returns the next day as end_date (for example 2027-03-15T00:59:00-04:00 for a cycle ending 2027-03-14 in America/New_York).
  • cycles/date-check/ reports an overlap for a cycle starting the next day, so back-to-back cycles cannot be created across the transition.

On the day the clocks go back, the cycle ends at 22:59 instead of 23:59.

Expected: the cycle ends at 23:59 on the chosen day, and a cycle starting the next day is accepted.

Cause: convert_to_utc in apps/api/plane/utils/timezone_converter.py adds timedelta(hours=23, minutes=59) to local midnight. pytz keeps the midnight UTC offset after that addition, which is wrong when the offset changes during the day.

I have a fix with tests ready and can open a PR.

Steps to reproduce
  1. Set a project's timezone to America/New_York (any zone with DST works).
  2. Create a cycle from 2027-03-01 to 2027-03-14. Clocks go forward on 14 March.
  3. Check a new cycle from 2027-03-15 to 2027-03-28 (POST cycles/date-check/).

Result: {"status": false, "error": "You have a cycle already on the given dates..."}

Reproduced through the app API with the docker-compose-test.yml test stack on preview at 290383d7.

Environment

Production

Browser

None

Edition

Community

Version

preview branch at 290383d7 (latest tag: v1.5.0-rc2)

Lenguaje dominante
TypeScript
Estrellas
63k
Forks
6.5k
Merge medio
2 d 16 h
PR fusionados (30 d)
70

Preparar el entorno

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 makeplane/plane

Todos los issues de makeplane/plane

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.