Auto-commit local changes before build (2026-02-03 14:29:19)
This commit is contained in:
parent
a4a6a60d45
commit
bb804f9a1e
@ -1 +1 @@
|
||||
v20260203-07-autotask-notes-endpoint-fix
|
||||
v20260203-08-autotask-ticketnote-timezone-suffix
|
||||
|
||||
@ -1847,14 +1847,18 @@ def api_run_checks_autotask_resolve_note():
|
||||
if ticket_id <= 0:
|
||||
return jsonify({"status": "error", "message": "Run has an invalid Autotask ticket id."}), 400
|
||||
|
||||
now = datetime.utcnow().strftime("%Y-%m-%d %H:%M:%SZ")
|
||||
tz_name = _get_ui_timezone_name()
|
||||
tz = _get_ui_timezone()
|
||||
now_utc = datetime.utcnow().replace(tzinfo=timezone.utc)
|
||||
now_local = now_utc.astimezone(tz) if tz else now_utc
|
||||
now = now_local.strftime("%Y-%m-%d %H:%M:%S")
|
||||
actor = (getattr(current_user, "email", None) or getattr(current_user, "username", None) or "operator")
|
||||
ticket_number = str(getattr(run, "autotask_ticket_number", "") or "").strip()
|
||||
|
||||
marker = "[Backupchecks] Marked as resolved in Backupchecks"
|
||||
body = (
|
||||
f"{marker} (ticket remains open in Autotask).\n"
|
||||
f"Time: {now}\n"
|
||||
f"Time: {now} ({tz_name})\n"
|
||||
f"By: {actor}\n"
|
||||
+ (f"Ticket: {ticket_number}\n" if ticket_number else "")
|
||||
)
|
||||
|
||||
@ -500,6 +500,11 @@ Changes:
|
||||
- Improved backend error handling so Autotask write errors return valid JSON instead of breaking the request.
|
||||
- Made the ticket note payload more robust to support tenant-specific field requirements.
|
||||
|
||||
## v20260203-08-autotask-ticketnote-timezone-suffix
|
||||
|
||||
- Updated Autotask ticket note timestamps to use the configured Backupchecks timezone instead of UTC.
|
||||
- Added a timezone suffix to the timestamp in the ticket note (e.g. Europe/Amsterdam).
|
||||
- Ensured all user-visible timestamps written to Autotask follow the timezone setting from Backupchecks.
|
||||
***
|
||||
|
||||
## v0.1.21
|
||||
|
||||
Loading…
Reference in New Issue
Block a user