[PR #5970] [MERGED] Fix date validation bug causing crashes with old dates #32168

Closed
opened 2026-04-18 08:15:32 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/5970
Author: @MatissJanis
Created: 10/20/2025
Status: Merged
Merged: 10/20/2025
Merged by: @MatissJanis

Base: masterHead: matiss/fix-old-date-validation


📝 Commits (3)

  • e5213f4 Fix date validation bug causing crashes with old dates
  • fc78b67 Add release notes for PR #5970
  • 23d590c Refactor date validation in schema-helpers.ts

📊 Changes

3 files changed (+38 additions, -1 deletions)

View changed files

📝 packages/loot-core/src/server/aql/schema-helpers.test.ts (+30 -0)
📝 packages/loot-core/src/server/aql/schema-helpers.ts (+1 -1)
upcoming-release-notes/5970.md (+7 -0)

📄 Description

Invalid dates should not be saved in the database. They should not cause budgets to blow up entirely. A quick fix to avoid this data corruption..

Fixes #5969


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/5970 **Author:** [@MatissJanis](https://github.com/MatissJanis) **Created:** 10/20/2025 **Status:** ✅ Merged **Merged:** 10/20/2025 **Merged by:** [@MatissJanis](https://github.com/MatissJanis) **Base:** `master` ← **Head:** `matiss/fix-old-date-validation` --- ### 📝 Commits (3) - [`e5213f4`](https://github.com/actualbudget/actual/commit/e5213f4c6e062be2676ad2225293a203983f263e) Fix date validation bug causing crashes with old dates - [`fc78b67`](https://github.com/actualbudget/actual/commit/fc78b67313750f9c42900dc95372d39fe35ef1d5) Add release notes for PR #5970 - [`23d590c`](https://github.com/actualbudget/actual/commit/23d590cb2557456435bdf8e8084143ec0c18a9d1) Refactor date validation in schema-helpers.ts ### 📊 Changes **3 files changed** (+38 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/server/aql/schema-helpers.test.ts` (+30 -0) 📝 `packages/loot-core/src/server/aql/schema-helpers.ts` (+1 -1) ➕ `upcoming-release-notes/5970.md` (+7 -0) </details> ### 📄 Description Invalid dates should not be saved in the database. They should not cause budgets to blow up entirely. A quick fix to avoid this data corruption.. Fixes #5969 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-18 08:15:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#32168