@bbn/bbn 2.0.53 → 2.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/dt/functions/guessFormat.js +1 -5
- package/package.json +1 -1
|
@@ -115,11 +115,7 @@ export default function guessFormat(input, formats, lng) {
|
|
|
115
115
|
return tryFormats(list);
|
|
116
116
|
}
|
|
117
117
|
// autodetect via Intl-derived formats
|
|
118
|
-
const
|
|
119
|
-
(typeof navigator !== 'undefined'
|
|
120
|
-
? navigator.language
|
|
121
|
-
: Intl.DateTimeFormat().resolvedOptions().locale);
|
|
122
|
-
const common = getCommonFormatsForLocale(resolvedLocale);
|
|
118
|
+
const common = getCommonFormatsForLocale(lng);
|
|
123
119
|
// Avoid trivial duplicates
|
|
124
120
|
const seen = new Set();
|
|
125
121
|
const mysqlNativeCandidates = MYSQL_AND_NATIVE_FORMATS.filter(fmt => {
|