GetServerTimeZones method

Future<List<TimeZoneDefinition>> GetServerTimeZones([
  1. Iterable<String>? timeZoneIds
])
Retrieves the time zone definitions known to the server. Not part of the C# ExchangeService public surface (the C# API only uses the request internally); C# would convert the definitions to TimeZoneInfo, which Dart has no equivalent for, so the parsed definitions are returned as-is. The optional ids of the time zones to retrieve. All time zones are returned when null.

Implementation

Future<List<TimeZoneDefinition>> GetServerTimeZones([
  Iterable<String>? timeZoneIds,
]) async {
  GetServerTimeZonesRequest request = GetServerTimeZonesRequest(this);
  request.Ids = timeZoneIds;

  return (await request.Execute())[0].TimeZones;
}