@live-change/vue3-components 0.9.61 → 0.9.62
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/logic/locale.js +5 -2
- package/package.json +3 -3
package/logic/locale.js
CHANGED
|
@@ -38,7 +38,10 @@ export class Locale {
|
|
|
38
38
|
nonEmptyObject(this.localeRef.value?.capturedRelativeTime)
|
|
39
39
|
?? new Intl.RelativeTimeFormat().resolvedOptions()
|
|
40
40
|
)
|
|
41
|
-
this.timezoneOffset = computed(() =>
|
|
41
|
+
this.timezoneOffset = computed(() =>
|
|
42
|
+
getTimeZoneOffset(new Date(), this.dateTime.value?.timeZone)
|
|
43
|
+
- getTimeZoneOffset(new Date(), undefined) // server timezone offset
|
|
44
|
+
)
|
|
42
45
|
|
|
43
46
|
}
|
|
44
47
|
|
|
@@ -157,7 +160,7 @@ export class Locale {
|
|
|
157
160
|
}
|
|
158
161
|
|
|
159
162
|
function getTimeZoneOffset(d, tz) {
|
|
160
|
-
const a = d.toLocaleString("ja", {timeZone: tz}).split(/[/\s:]/)
|
|
163
|
+
const a = d.toLocaleString("ja", { timeZone: tz }).split(/[/\s:]/)
|
|
161
164
|
a[1]--
|
|
162
165
|
const t1 = Date.UTC.apply(null, a)
|
|
163
166
|
const t2 = new Date(d).setMilliseconds(0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/vue3-components",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.62",
|
|
4
4
|
"description": "Live Change Framework - vue components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/live-change/live-change-stack",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/vue3-ssr": "^0.9.
|
|
24
|
+
"@live-change/vue3-ssr": "^0.9.62",
|
|
25
25
|
"debug": "^4.3.4",
|
|
26
26
|
"mitt": "3.0.1",
|
|
27
27
|
"vue": "^3.5.12"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "b1b605b7f1fa4fc3de4720afbb401e2cfff080cf"
|
|
30
30
|
}
|