diff --git a/Meeting-dial-in/Meeting-dial-in.js b/Meeting-dial-in/Meeting-dial-in.js index cace93c..dddbbaf 100644 --- a/Meeting-dial-in/Meeting-dial-in.js +++ b/Meeting-dial-in/Meeting-dial-in.js @@ -1,7 +1,7 @@ // Variables used by Scriptable. // These must be at the very top of the file. Do not edit. // icon-color: light-brown; icon-glyph: magic; -// Version 0.1.0 Beta-Version +// Version 0.1.1 Beta-Version /**************************** Notice @@ -11,8 +11,8 @@ The search pattern list must be constantly expanded. If the dial-in data of a meeting should not be recognized, the invitation can be provided under https://github.com/ThisIsBenny/iOS-Widgets/issues/21, so that the list of search patterns can be extended. *****************************/ - -let timeformat, countryCode +let countryCode +let timeformat = Device.locale().replace('_', '-') let widgetInputRAW = args.widgetParameter; let widgetInput = null; @@ -20,13 +20,11 @@ let widgetInput = null; if (widgetInputRAW) { widgetInput = widgetInputRAW.toString().split(';') countryCode = widgetInput[0] - timeformat = widgetInput[1] || 'de-DE' if (/^\+[\d]{1,3}$/.test(countryCode) === false) { throw new Error('Invalid format of country code: ' + countryCode); } } else { countryCode = '+49' - timeformat = 'de-DE' } const listLimit = (config.widgetFamily == 'medium') ? 1 : 5; @@ -41,6 +39,7 @@ if (Device.isUsingDarkAppearance()) { let now = new Date() let end = new Date() end.setHours(23, 59, 59, 999); +end.setDate(31) const matchPatterns = { skype: { diff --git a/Meeting-dial-in/README.md b/Meeting-dial-in/README.md index dc2d4d9..3edc48d 100644 --- a/Meeting-dial-in/README.md +++ b/Meeting-dial-in/README.md @@ -15,11 +15,6 @@ The following services are currently supported: Via the widget parameters the country code has to be set. This code has to start with a +. Example: +49 The country code is needed in case several international phone numbers are found (please check notice 1, because a country code does not automatically mean that the phone number is found). -### Optional -By default, the german date format will be used: DD.MM.YYYY, HH:mm - -To use a different format, the format has to be set to the widget parameter. The format has to be separated from the country code with a ; - ![Meeting dial in Widget setup](https://raw.githubusercontent.com/ThisIsBenny/iOS-Widgets/main/Meeting-dial-in/setup.jpeg) ## Notice 1 diff --git a/Meeting-dial-in/setup.jpeg b/Meeting-dial-in/setup.jpeg index 17f2f16..68bc396 100644 Binary files a/Meeting-dial-in/setup.jpeg and b/Meeting-dial-in/setup.jpeg differ diff --git a/Widget-Catalog/catalog.json b/Widget-Catalog/catalog.json index 8e64d39..9d8bcf3 100644 --- a/Widget-Catalog/catalog.json +++ b/Widget-Catalog/catalog.json @@ -16,7 +16,7 @@ }, { "name": "Meeting dial in", - "version": "0.1.0", + "version": "0.1.1", "scriptURL": "https://raw.githubusercontent.com/ThisIsBenny/iOS-Widgets/main/Meeting-dial-in/Meeting-dial-in.js", "previewURL": "https://raw.githubusercontent.com/ThisIsBenny/iOS-Widgets/main/Meeting-dial-in/previewLight.jpeg", "descriptionURL": "https://github.com/ThisIsBenny/iOS-Widgets/blob/main/Meeting-dial-in/README.md"