예제 #1
0
        public TimeZoneWrapper Get(TimeZoneInfo timeZone)
        {
            _timeZone = timeZone;

            var result = new TimeZoneWrapper();

            result.Name   = TimeZoneConverter.GetTimeZoneName(_timeZone);
            result.Id     = _timeZone.Id;
            result.Offset = (int)_timeZone.GetOffset().TotalMinutes;

            return(result);
        }