From c761632d54ff4d404e49bbff8a8543c3a6cacca3 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Thu, 3 Dec 2026 12:51:05 +0100 Subject: [PATCH] Build heatmap test days as calendar days --- test/features/measurements/widgets/helpers_test.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/features/measurements/widgets/helpers_test.dart b/test/features/measurements/widgets/helpers_test.dart index 7b7b85cca..28ead7806 100644 --- a/test/features/measurements/widgets/helpers_test.dart +++ b/test/features/measurements/widgets/helpers_test.dart @@ -277,7 +277,9 @@ void main() { // for a grid of days would collapse whole weeks into a single cell final many = [ for (var i = 0; i < 300; i++) - MeasurementChartEntry(60 + i % 7, DateTime(2026, 1, 1).add(Duration(days: i))), + // calendar days, not 24h steps: across a DST switch those would + // shift to 23:00 of the previous day and two entries share a day + MeasurementChartEntry(60 + i % 7, DateTime(2026, 1, 1 + i)), ]; final widget = buildChartForMetricType( MetricType.custom,