From 4bfa1cffb076790526b03775b463eb268aab8b74 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Tue, 13 Feb 2024 20:19:08 +0200 Subject: [PATCH] test: Fix TimePicker tests crash for 24h clock --- .../TimePicker/TimePickerIntegrationTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Uno.UI.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/TimePicker/TimePickerIntegrationTests.cs b/src/Uno.UI.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/TimePicker/TimePickerIntegrationTests.cs index c9fb5c3efa46..1f1a405261a7 100644 --- a/src/Uno.UI.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/TimePicker/TimePickerIntegrationTests.cs +++ b/src/Uno.UI.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/TimePicker/TimePickerIntegrationTests.cs @@ -23,6 +23,7 @@ public class TimePickerIntegrationTests private static Calendar CreateTime(int hours, int minutes, int period = 1) { var time = new Calendar(); + time.ChangeClock(ClockIdentifiers.TwelveHourValue); time.Hour = hours; time.Minute = minutes; time.Period = period;