timezone-js-ts
Advanced tools
Comparing version 1.1.29 to 1.1.30
@@ -46,4 +46,5 @@ "use strict"; | ||
}; | ||
const result = new Intl.DateTimeFormat(localeIdentifier ? localeIdentifier : 'en-GB', configOptions).formatToParts(date); | ||
const findTz = result.find((z) => z.type === 'timeZoneName'); | ||
const result = new Intl.DateTimeFormat(localeIdentifier ? localeIdentifier : 'en-GB', configOptions).format(date); | ||
const dateObj = new Intl.DateTimeFormat(localeIdentifier ? localeIdentifier : 'en-GB', configOptions).formatToParts(date); | ||
const findTz = dateObj.find((z) => z.type === 'timeZoneName'); | ||
var str = findTz.value; | ||
@@ -50,0 +51,0 @@ let arr = []; |
{ | ||
"name": "timezone-js-ts", | ||
"version": "1.1.29", | ||
"version": "1.1.30", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
51447
2455