From 9ffc145f0b892f04a6a0d46e3ecd4bca8f8dae37 Mon Sep 17 00:00:00 2001 From: Erik Darling <2136037+erikdarlingdata@users.noreply.github.com> Date: Wed, 18 Feb 2026 22:17:29 -0500 Subject: [PATCH] Fix collector duration chart using local time instead of server time The collector duration trend chart used .ToLocalTime() while every other chart uses .AddMinutes(UtcOffsetMinutes) to display server time. This caused the chart x-axis to be offset by the difference between the local machine and server time zones. Co-Authored-By: Claude Opus 4.6 --- Lite/Controls/ServerTab.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lite/Controls/ServerTab.xaml.cs b/Lite/Controls/ServerTab.xaml.cs index cb0efa5b..28787580 100644 --- a/Lite/Controls/ServerTab.xaml.cs +++ b/Lite/Controls/ServerTab.xaml.cs @@ -1948,7 +1948,7 @@ private void UpdateCollectorDurationChart(List data) var points = group.OrderBy(d => d.CollectionTime).ToList(); if (points.Count < 2) continue; - var times = points.Select(d => d.CollectionTime.ToLocalTime().ToOADate()).ToArray(); + var times = points.Select(d => d.CollectionTime.AddMinutes(UtcOffsetMinutes).ToOADate()).ToArray(); var durations = points.Select(d => (double)d.DurationMs!.Value).ToArray(); var scatter = CollectorDurationChart.Plot.Add.Scatter(times, durations);