@live-change/vue3-components 0.9.61 → 0.9.63

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.
Files changed (2) hide show
  1. package/logic/locale.js +5 -2
  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(() => getTimeZoneOffset(new Date(), this.dateTime.value?.timeZone))
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.61",
3
+ "version": "0.9.63",
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.61",
24
+ "@live-change/vue3-ssr": "^0.9.63",
25
25
  "debug": "^4.3.4",
26
26
  "mitt": "3.0.1",
27
27
  "vue": "^3.5.12"
28
28
  },
29
- "gitHead": "f750f29f912b9a76b5ffa2bdf5c46954cc7e7a67"
29
+ "gitHead": "89b9647aeaff9fc66add1f07d225fe4f44d91a39"
30
30
  }