MeetingTimeZone.fromTimeZone constructor

MeetingTimeZone.fromTimeZone(
  1. TimeZone timeZone
)
Initializes a new instance of the The time zone used to initialize this instance.

Implementation

MeetingTimeZone.fromTimeZone(TimeZone timeZone) {
  // Unfortunately, MeetingTimeZone does not support all the time transition types
  // supported by TimeZoneInfo. That leaves us unable to accurately convert TimeZoneInfo
  // into MeetingTimeZone. So we don't... Instead, we emit the time zone's Id and
  // hope the server will find a match (which it should).
  this.Name = timeZone.abbreviation;
}