Skip to content

Commit

Permalink
[monotouch-test] Use the same timezone for the calendar as we do for …
Browse files Browse the repository at this point in the history
…the time (UTC) in CalendarTest.DateComponentsTest. Fixes #xamarin/maccore@2481. (#12304)

Fixes xamarin/maccore#2481.
  • Loading branch information
rolfbjarne committed Jul 30, 2021
1 parent 0baef3c commit 3766cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/monotouch-test/Foundation/CalendarTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void DateComponentsTest ()
var now = DateTime.UtcNow;
NSDateComponents comps;

cal.TimeZone = NSTimeZone.FromName ("Europe/Madrid");
cal.TimeZone = NSTimeZone.FromName ("UTC");
comps = cal.Components (NSCalendarUnit.Year | NSCalendarUnit.Month | NSCalendarUnit.Day, (NSDate) now);
Assert.AreEqual ((nint) now.Year, comps.Year, "a year");
Assert.AreEqual ((nint) now.Month, comps.Month, "a month");
Expand Down

1 comment on commit 3766cf8

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 Tests failed catastrophically on Build (no summary found). 🔥

Result file $(TEST_SUMMARY_PATH) not found.

Pipeline on Agent
[monotouch-test] Use the same timezone for the calendar as we do for the time (UTC) in CalendarTest.DateComponentsTest. Fixes #xamarin/maccore@2481. (#12304)

Please sign in to comment.