diff options
| author | mo khan <mo@mokhan.ca> | 2025-06-29 10:41:23 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-06-29 10:41:23 -0600 |
| commit | 6032ce437919eb1aa05a4acd1907df9c26193f13 (patch) | |
| tree | 1cfefecfe85b55dfb54fee6da45c1077baa08488 | |
| parent | f754f41a1dea7f14d783d7cdee79aad493c5f244 (diff) | |
fix: remove time format from NaiveDate causing formatting panicmain
The Transaction model uses NaiveDate which only stores date information,
not time. Attempting to format it with %H:%M time format caused a panic
when pressing Tab to switch to Transactions view.
Changed format from "%Y-%m-%d %H:%M" to "%Y-%m-%d" to match the data type.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
| -rw-r--r-- | src/tui/transactions.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tui/transactions.rs b/src/tui/transactions.rs index a0e85c7..d56311f 100644 --- a/src/tui/transactions.rs +++ b/src/tui/transactions.rs @@ -92,7 +92,7 @@ fn draw_transaction_list(f: &mut Frame, app: &mut App, area: Rect) { }; ListItem::new(Line::from(vec