From 261819d9948706594bc61805017dd71d46025d9f Mon Sep 17 00:00:00 2001 From: Mehmet Seckin Date: Thu, 20 Feb 2020 17:28:30 +0000 Subject: [PATCH] Rename timeZoneInput to DefaultTimeZoneInput --- TimeZoneDisplay/ControlManifest.Input.xml | 2 +- TimeZoneDisplay/index.ts | 8 ++++---- TimeZoneDisplay/strings/TimeZoneDisplay.1033.resx | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/TimeZoneDisplay/ControlManifest.Input.xml b/TimeZoneDisplay/ControlManifest.Input.xml index 4e5ed41..33383c5 100644 --- a/TimeZoneDisplay/ControlManifest.Input.xml +++ b/TimeZoneDisplay/ControlManifest.Input.xml @@ -3,7 +3,7 @@ - + DateAndTime.DateOnly DateAndTime.DateAndTime diff --git a/TimeZoneDisplay/index.ts b/TimeZoneDisplay/index.ts index 6a22d95..09f522f 100644 --- a/TimeZoneDisplay/index.ts +++ b/TimeZoneDisplay/index.ts @@ -43,7 +43,7 @@ export class TimeZoneDisplay implements ComponentFramework.StandardControl): string | null { - let timeZoneInput = context.parameters.timeZoneInput; - return !!timeZoneInput.security?.readable ? timeZoneInput.raw : 'local'; + private getdefaultTimeZoneInput(context: ComponentFramework.Context): string | null { + let defaultTimeZoneInput = context.parameters.defaultTimeZoneInput; + return !!defaultTimeZoneInput.security?.readable ? defaultTimeZoneInput.raw : 'local'; } private getDateInput(context: ComponentFramework.Context) : Date | null { diff --git a/TimeZoneDisplay/strings/TimeZoneDisplay.1033.resx b/TimeZoneDisplay/strings/TimeZoneDisplay.1033.resx index 99ad4ae..bd2a731 100644 --- a/TimeZoneDisplay/strings/TimeZoneDisplay.1033.resx +++ b/TimeZoneDisplay/strings/TimeZoneDisplay.1033.resx @@ -5,10 +5,10 @@ The date value that will be used as an input. - + Time Zone - + The IANA identifier of the target time zone. \ No newline at end of file