ConvertTime static method

DateTime ConvertTime(
  1. DateTime dateTime,
  2. TimeZone sourceTimeZone,
  3. TimeZone destinationTimeZone
)
Converts the specified date and time from one time zone to another. The date time to convert. The source time zone. The destination time zone.

Implementation

static DateTime ConvertTime(DateTime dateTime, TimeZone sourceTimeZone,
    TimeZone destinationTimeZone) {
  // todo : fix timezones
  print("!!! using unsafe ConvertTime");
  return dateTime;
//            try
//            {
//                return TimeZoneInfo.ConvertTime(
//                    dateTime,
//                    sourceTimeZone,
//                    destinationTimeZone);
//            }
//            catch (ArgumentException e)
//            {
//                throw new TimeZoneConversionException(
//                    string.Format(
//                        Strings.CannotConvertBetweenTimeZones,
//                        EwsUtilities.DateTimeToXSDateTime(dateTime),
//                        sourceTimeZone.DisplayName,
//                        destinationTimeZone.DisplayName),
//                    e);
//            }
}