@fy-/fws-vue 2.3.38 → 2.3.39
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.
|
@@ -109,7 +109,7 @@ function formatDatetime(dt: Date | string | number) {
|
|
|
109
109
|
|
|
110
110
|
function formatTimeago(dt: Date | string | number) {
|
|
111
111
|
const timestamp = parseDateInput(dt)
|
|
112
|
-
const locale = getLocale().
|
|
112
|
+
const locale = getLocale().split('-')[0].toLocaleLowerCase()
|
|
113
113
|
|
|
114
114
|
return formatDateTimeago(new Date(timestamp), locale)
|
|
115
115
|
}
|