Forum General


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

TimeZoneInfo.TransitionTime has wrong IsFixedDateRule value

I am trying to get the rules for if/when DST (daylight saving time) occurs for a time zone. From a TimeZoneInfo I can get all the AdjustmentRules which have a DayLightTransitionStart and DayLightTransitionEnd. Each of these properties have information when DST starts and when it ends. The IsFixeDateRule is a bool saying if it happens on a specific date or a floating date (for example last Monday in March). When I try this the IsFixedDateRule property is true for all AdjustmentRules in all TimeZones and I know that this is not the case.

From Microsoft's documentation about system.timezoneinfo.adjustmentrule (I cannot post a link yet) they have an example where they show that most values are not IsFixedDateRule. Does this has something to do with which system it is being run on? I get the correct dates when DST is happening, it's just that the IsFixedDateRule is wrong.

Sign In or Register to comment.