You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adds GetServerTimeZones method on ExchangeService class. fixes many issues related to timezone and DateTime, added build sequence text file for creating single file output.
//ref: skipped creation based on server data, directly creating using TimeZone Mapping data. complex to translate Windows TimeZoneInfo subclasses to javascript.
// let adjustmentRules: TimeZoneInfo.AdjustmentRule[] = [];
304
-
305
-
// let startDate: DateTime = DateTime.MinValue;
306
-
// let endDate: DateTime;
307
-
// let effectiveEndDate: DateTime;
308
-
309
-
// for (let i = 0; i < this.transitions.length; i++) {
310
-
// if (i < this.transitions.length - 1) {
311
-
// endDate = (this.transitions[i + 1] as AbsoluteDateTransition).DateTime;
312
-
// effectiveEndDate = endDate.AddDays(-1);
313
-
// }
314
-
// else {
315
-
// endDate = DateTime.MaxValue;
316
-
// effectiveEndDate = endDate;
317
-
// }
318
-
319
-
// // OM:1648848 Due to bad timezone data from clients the
320
-
// // startDate may not always come before the effectiveEndDate
321
-
// if (startDate < effectiveEndDate) {
322
-
// let adjustmentRule: TimeZoneInfo.AdjustmentRule = this.transitions[i].TargetGroup.CreateAdjustmentRule(startDate, effectiveEndDate);
323
-
324
-
// if (adjustmentRule != null) {
325
-
// adjustmentRules.push(adjustmentRule);
326
-
// }
327
-
328
-
// startDate = endDate;
329
-
// }
330
-
// else {
331
-
// // service.TraceMessage(
332
-
// // TraceFlags.EwsTimeZones,
333
-
// // string.Format(
334
-
// // "The startDate '{0}' is not before the effectiveEndDate '{1}'. Will skip creating adjustment rule.",
335
-
// // startDate,
336
-
// // effectiveEndDate));
337
-
// }
338
-
// }
339
-
340
-
// if (adjustmentRules.length == 0) {
341
-
// // If there are no adjustment rule, the time zone does not support Daylight
342
-
// // saving time.
343
-
// result = TimeZoneInfo.CreateCustomTimeZone(
344
-
// this.Id,
345
-
// creationParams.BaseOffsetToUtc,
346
-
// this.Name,
347
-
// creationParams.StandardDisplayName);
348
-
// }
349
-
// else {
350
-
// result = TimeZoneInfo.CreateCustomTimeZone(
351
-
// this.Id,
352
-
// creationParams.BaseOffsetToUtc,
353
-
// this.Name,
354
-
// creationParams.StandardDisplayName,
355
-
// creationParams.DaylightDisplayName,
356
-
// adjustmentRules);
357
-
// }
358
-
359
-
// return result;
292
+
if(!parse){
293
+
//ref: skipped creation based on server data, directly creating using TimeZone Mapping data. complex to translate Windows TimeZoneInfo subclasses to javascript.
0 commit comments