mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 08:25:54 +02:00
[GH-ISSUE #543] [Bug]: Timezone normlization breaks Maintenance #350
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy-maziggy-1#350
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Keybored02 on GitHub (Feb 27, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/543
Bug Description
A regression exists in
maintenance.py: in0.2.2b1, timezone normalization for naive datetimes was removed in the maintenance date calculations (thelast_performed_atmath).If any row has a naive
last_performed_at, subtracting fromdatetime.now(timezone.utc) can throw TypeError (naive vs aware datetime), so/maintenance/overviewfails.Frontend behavior then looks like “no printers configured” because the query fails and the page falls back to empty-state UI.
Expected Behavior
Maintenance Page is usable.
Fixed by changing timezone handling:
Steps to Reproduce
In 0.2.1:
Printer Model
H2C
Bambuddy Version
0.2.1
Printer Firmware Version
01.01.05.00
Installation Method
Docker
Operating System
Docker
Relevant Logs / Support Package
Screenshots
No response
Additional Context
No response
Checklist
@Keybored02 commented on GitHub (Feb 27, 2026):
Fixed with a repull of 0.2.1, closing