Commit Graph

2 Commits

Author SHA1 Message Date
Víctor Falcón 4557ef5065 fix(periods): resolve current period in user timezone and align period end
- compute current/trend now() against user timezone so period
  boundaries are correct near midnight and month edges
- make end_inclusive endOfDay to match frontend and stay correct
  if compared against datetime columns
- add user-periods.ts unit tests covering custom-start-day month,
  quarter, and year ranges, shifting, and boundary equality
2026-06-11 20:31:11 +01:00
Víctor Falcón 2762acb240 feat(periods): add custom month start day
Allow users to configure the day their monthly reporting period starts so dashboard and cashflow ranges match their budget cycle.
2026-06-11 20:31:11 +01:00