[GH-ISSUE #66] [Bug]: System Time vs. Reported Time #28

Closed
opened 2026-05-06 12:25:03 +02:00 by BreizhHardware · 2 comments

Originally created by @MisterBeardy on GitHub (Jan 9, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/66

Originally assigned to: @maziggy on GitHub.

Bug Description

I have bambuddy running as a docker container on a Debian system and the system date and time is set to TZ America/New_York, yet when I upload a model to the archive to then assign to a project and get ready to send to a printer, the upload time is set to UTC. Tried running the same process on a local dev environment on my MacBook with the latest 1.6-final release and getting the same issue.

Expected Behavior

I would assume that the archive time being shown is based on the system time not UTC. Everything else is displaying the correct time, just not the archived prints

Steps to Reproduce

Upload a print to the archive
Check the date and time of the upload, it shows UTC and not the local time of the system

Printer Model

X1 Carbon

Bambuddy Version

0.1.6-Final and 0.1.6b6

Printer Firmware Version

latest

Installation Method

Manual (git clone)

Operating System

macOS

Relevant Logs

2026-01-09 12:03:36,289 INFO [sqlalchemy.engine.Engine] BEGIN (implicit)
2026-01-09 12:03:36,289 INFO [sqlalchemy.engine.Engine] INSERT INTO print_archives (printer_id, project_id, filename, file_path, file_size, content_hash, thumbnail_path, timelapse_path, source_3mf_path, print_name, print_time_seconds, filament_used_grams, filament_type, filament_color, layer_height, total_layers, nozzle_diameter, bed_temperature, nozzle_temperature, status, started_at, completed_at, extra_data, makerworld_url, designer, is_favorite, tags, notes, cost, failure_reason, quantity, energy_kwh, energy_cost) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING id, created_at
2026-01-09 12:03:36,289 INFO [sqlalchemy.engine.Engine] [cached since 235.8s ago] (None, None, '14mm holder 9 holes v1.3mf', 'archive/unassigned/20260109_120336_14mm holder 9 holes v1/14mm holder 9 holes v1.3mf', 1121232, 'e5b96c899bf7fbd1a0b40fe52a39d874bb6f84e03d03d7198b73dcc86b9b33d8', 'archive/unassigned/20260109_120336_14mm holder 9 holes v1/thumbnail.png', None, None, '14mm holder 9 holes v1', None, None, None, None, None, None, None, None, None, 'archived', None, '2026-01-09 12:03:36.288768', '{}', None, None, 0, None, None, None, None, 1, None, None)
2026-01-09 12:03:36,290 DEBUG [aiosqlite] executing functools.partial(<built-in method cursor of sqlite3.Connection object at 0xffff785edc60>)
2026-01-09 12:03:36,290 DEBUG [aiosqlite] operation functools.partial(<built-in method cursor of sqlite3.Connection object at 0xffff785edc60>) completed
2026-01-09 12:03:36,290 DEBUG [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Cursor object at 0xffff7aa8d1c0>, 'INSERT INTO print_archives (printer_id, project_id, filename, file_path, file_size, content_hash, thumbnail_path, timelapse_path, source_3mf_path, print_name, print_time_seconds, filament_used_grams, filament_type, filament_color, layer_height, total_layers, nozzle_diameter, bed_temperature, nozzle_temperature, status, started_at, completed_at, extra_data, makerworld_url, designer, is_favorite, tags, notes, cost, failure_reason, quantity, energy_kwh, energy_cost) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING id, created_at', (None, None, '14mm holder 9 holes v1.3mf', 'archive/unassigned/20260109_120336_14mm holder 9 holes v1/14mm holder 9 holes v1.3mf', 1121232, 'e5b96c899bf7fbd1a0b40fe52a39d874bb6f84e03d03d7198b73dcc86b9b33d8', 'archive/unassigned/20260109_120336_14mm holder 9 holes v1/thumbnail.png', None, None, '14mm holder 9 holes v1', None, None, None, None, None, None, None, None, None, 'archived', None, '2026-01-09 12:03:36.288768', '{}', None, None, 0, None, None, None, None, 1, None, None))

Screenshots

Image

Additional Context

Image

Checklist

  • I have searched existing issues to ensure this bug hasn't already been reported
  • I am using the latest version of Bambuddy
  • My printer is set to LAN Only mode
Originally created by @MisterBeardy on GitHub (Jan 9, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/66 Originally assigned to: @maziggy on GitHub. ### Bug Description I have bambuddy running as a docker container on a Debian system and the system date and time is set to TZ America/New_York, yet when I upload a model to the archive to then assign to a project and get ready to send to a printer, the upload time is set to UTC. Tried running the same process on a local dev environment on my MacBook with the latest 1.6-final release and getting the same issue. ### Expected Behavior I would assume that the archive time being shown is based on the system time not UTC. Everything else is displaying the correct time, just not the archived prints ### Steps to Reproduce Upload a print to the archive Check the date and time of the upload, it shows UTC and not the local time of the system ### Printer Model X1 Carbon ### Bambuddy Version 0.1.6-Final and 0.1.6b6 ### Printer Firmware Version latest ### Installation Method Manual (git clone) ### Operating System macOS ### Relevant Logs ```shell 2026-01-09 12:03:36,289 INFO [sqlalchemy.engine.Engine] BEGIN (implicit) 2026-01-09 12:03:36,289 INFO [sqlalchemy.engine.Engine] INSERT INTO print_archives (printer_id, project_id, filename, file_path, file_size, content_hash, thumbnail_path, timelapse_path, source_3mf_path, print_name, print_time_seconds, filament_used_grams, filament_type, filament_color, layer_height, total_layers, nozzle_diameter, bed_temperature, nozzle_temperature, status, started_at, completed_at, extra_data, makerworld_url, designer, is_favorite, tags, notes, cost, failure_reason, quantity, energy_kwh, energy_cost) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING id, created_at 2026-01-09 12:03:36,289 INFO [sqlalchemy.engine.Engine] [cached since 235.8s ago] (None, None, '14mm holder 9 holes v1.3mf', 'archive/unassigned/20260109_120336_14mm holder 9 holes v1/14mm holder 9 holes v1.3mf', 1121232, 'e5b96c899bf7fbd1a0b40fe52a39d874bb6f84e03d03d7198b73dcc86b9b33d8', 'archive/unassigned/20260109_120336_14mm holder 9 holes v1/thumbnail.png', None, None, '14mm holder 9 holes v1', None, None, None, None, None, None, None, None, None, 'archived', None, '2026-01-09 12:03:36.288768', '{}', None, None, 0, None, None, None, None, 1, None, None) 2026-01-09 12:03:36,290 DEBUG [aiosqlite] executing functools.partial(<built-in method cursor of sqlite3.Connection object at 0xffff785edc60>) 2026-01-09 12:03:36,290 DEBUG [aiosqlite] operation functools.partial(<built-in method cursor of sqlite3.Connection object at 0xffff785edc60>) completed 2026-01-09 12:03:36,290 DEBUG [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Cursor object at 0xffff7aa8d1c0>, 'INSERT INTO print_archives (printer_id, project_id, filename, file_path, file_size, content_hash, thumbnail_path, timelapse_path, source_3mf_path, print_name, print_time_seconds, filament_used_grams, filament_type, filament_color, layer_height, total_layers, nozzle_diameter, bed_temperature, nozzle_temperature, status, started_at, completed_at, extra_data, makerworld_url, designer, is_favorite, tags, notes, cost, failure_reason, quantity, energy_kwh, energy_cost) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING id, created_at', (None, None, '14mm holder 9 holes v1.3mf', 'archive/unassigned/20260109_120336_14mm holder 9 holes v1/14mm holder 9 holes v1.3mf', 1121232, 'e5b96c899bf7fbd1a0b40fe52a39d874bb6f84e03d03d7198b73dcc86b9b33d8', 'archive/unassigned/20260109_120336_14mm holder 9 holes v1/thumbnail.png', None, None, '14mm holder 9 holes v1', None, None, None, None, None, None, None, None, None, 'archived', None, '2026-01-09 12:03:36.288768', '{}', None, None, 0, None, None, None, None, 1, None, None)) ``` ### Screenshots <img width="347" height="374" alt="Image" src="https://github.com/user-attachments/assets/194e3d98-bed5-4523-9611-517e7f6c909f" /> ### Additional Context <img width="347" height="374" alt="Image" src="https://github.com/user-attachments/assets/194e3d98-bed5-4523-9611-517e7f6c909f" /> ### Checklist - [x] I have searched existing issues to ensure this bug hasn't already been reported - [x] I am using the latest version of Bambuddy - [x] My printer is set to LAN Only mode
BreizhHardware 2026-05-06 12:25:03 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@maziggy commented on GitHub (Jan 10, 2026):

Thanks, good catch! Fixed in branch 0.1.6-final. Please let me know, if that works for you.

<!-- gh-comment-id:3731948307 --> @maziggy commented on GitHub (Jan 10, 2026): Thanks, good catch! Fixed in branch 0.1.6-final. Please let me know, if that works for you.
Author
Owner

@MisterBeardy commented on GitHub (Jan 10, 2026):

Sweet, another bug squashed. I just tested it with a new docker build and it's working perfectly. Thanks!

<!-- gh-comment-id:3733352923 --> @MisterBeardy commented on GitHub (Jan 10, 2026): Sweet, another bug squashed. I just tested it with a new docker build and it's working perfectly. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy#28
No description provided.