From 19c0b5812dcea9af88c307808a9430022296cf24 Mon Sep 17 00:00:00 2001 From: jeffreyramia Date: Thu, 22 Feb 2018 21:08:14 +0200 Subject: [PATCH] Update index.ts As stated in the plugin repo, the options field is optional. Also, the plugin returns a `iana_timezone` property such as 'America/New_York' which was not included. --- src/@ionic-native/plugins/globalization/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/globalization/index.ts b/src/@ionic-native/plugins/globalization/index.ts index 0acecdd92..77d8bf7df 100644 --- a/src/@ionic-native/plugins/globalization/index.ts +++ b/src/@ionic-native/plugins/globalization/index.ts @@ -83,7 +83,7 @@ export class Globalization extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getDatePattern(options: { formatLength: string, selector: string }): Promise<{ pattern: string, timezone: string, utf_offset: number, dst_offset: number }> { return; } + getDatePattern(options?: { formatLength: string, selector: string }): Promise<{ pattern: string, timezone: string, iana_timezone: string, utf_offset: number, dst_offset: number }> { return; } /** * Returns an array of the names of the months or days of the week, depending on the client's user preferences and calendar.