Esempio n. 1
0
        public static TimeZoneDefinition GetTimezoneDefinitionFor(this XrmContext xrmContext, SystemUser user)
        {
            var usersettings = xrmContext.GetUserSettingsFor(user);

            return(xrmContext.TimeZoneDefinitionSet.SingleOrDefault(t => t.TimeZoneCode == usersettings.TimeZoneCode));
        }