ADR-055: Clock and timezone
Estado
Accepted — 2026-08-23
Decisión
- Persistencia: timestamptz (UTC) o date (due/promised sin hora).
- Reloj de negocio: timezone de Organization (ADR-003, DOC-002). Default
America/New_Yorken signup (ADR-048) — editable en settings. - Aging y “hoy”:
startOfDayen tz de la org. Sequences (Due−3) usan esa fecha, no UTC midnight. - Dominio recibe un puerto
Clock. Prohibidonew Date()suelto en rules de aging/promises (ADR-022). - API: ISO-8601. UI: formateo
en-USen tz de org (ADR-035). - Tests: clock inyectado (
2026-08-15T12:00:00-04:00).
Job EvaluatePromises y SequenceStepDue usan el mismo Clock.