Skip to content

Commit 7128c30

Browse files
committed
Change CreateFromTimeZoneName to standard static name - FindSystemTimeZoneById
1 parent b40a81a commit 7128c30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/js/ComplexProperties/TimeZones/TimeZoneDefinition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export class TimeZoneDefinition extends ComplexProperty {
289289
ToTimeZoneInfo(service?: ExchangeService): TimeZoneInfo {
290290
this.Validate();
291291

292-
return TimeZoneInfo.CreateFromTimeZoneName(this.Id);
292+
return TimeZoneInfo.FindSystemTimeZoneById(this.Id);
293293
//ref: skipped creation based on server data, directly creating using TimeZone Mapping data. complex to translate Windows TimeZoneInfo subclasses to javascript.
294294
// let result: TimeZoneInfo;
295295

src/js/TimeZoneInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export class TimeZoneInfo {
203203
return tz;
204204
}
205205

206-
public static CreateFromTimeZoneName(zoneName: string): TimeZoneInfo {
206+
public static FindSystemTimeZoneById(zoneName: string): TimeZoneInfo {
207207
let ianaId = StringHelper.Empty;
208208
let winId = StringHelper.Empty;
209209

0 commit comments

Comments
 (0)