odoo_mqtt/extra-addons/open_workshop
matthias.lotz 21ac8641cc fix: session_complete Zeitstempel UTC-korrekt + PoS attendanceEnd in UTC
Problem: Lasercutter-Sessions wurden in get_pos_session_suggestions
übersprungen, weil start_time > end_time.

Bug 1 – iot_api.py (session_complete):
session_start_time im Gerät-Payload ist Lokalzeit ohne TZ-Info.
Bisher naiv als UTC gespeichert → start_time lag 1h nach end_time.
Fix: start_time = end_time - session_seconds (komplett UTC-basiert).
session_start_time aus dem Payload wird nicht mehr verwendet.

Bug 2 – machine_time_control_button.js:
toServerDatetime(new Date()) verwendete getHours() (Lokalzeit).
Odoo erwartet UTC-Strings → attendanceEnd war 1h zu groß.
Fix: Auf getUTCHours() / getUTCDate() etc. umgestellt.
2026-03-11 21:04:28 +01:00
..
open_workshop_mqtt fix: session_complete Zeitstempel UTC-korrekt + PoS attendanceEnd in UTC 2026-03-11 21:04:28 +01:00
open_workshop_pos_mqtt fix: session_complete Zeitstempel UTC-korrekt + PoS attendanceEnd in UTC 2026-03-11 21:04:28 +01:00