@finema/finework-layer 0.2.104 → 0.2.106
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.106](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.105...0.2.106) (2026-01-08)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* adjust target date calculation for accurate time zone handling in TimeFromNow component ([c8f8aa3](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/c8f8aa365854f5f76fb22496eaec0113a911bdc8))
|
|
8
|
+
|
|
9
|
+
## [0.2.105](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.104...0.2.105) (2026-01-08)
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* correct date handling in TimeFromNow component for accurate distance calculation ([c6335f5](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/c6335f532f0fb4acc58730d44ab69fdf4852e433))
|
|
14
|
+
|
|
3
15
|
## [0.2.104](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.103...0.2.104) (2026-01-07)
|
|
4
16
|
|
|
5
17
|
### Features
|
|
@@ -24,10 +24,11 @@ const getValue = computed(() => {
|
|
|
24
24
|
? locales.th
|
|
25
25
|
: locales.enUS
|
|
26
26
|
|
|
27
|
-
const
|
|
27
|
+
const targetDate = new Date(new Date(props.value).getTime() + new Date().getTimezoneOffset() * 60000)
|
|
28
|
+
const daysDiff = differenceInDays(new Date(), targetDate)
|
|
28
29
|
|
|
29
30
|
if (daysDiff <= 6) {
|
|
30
|
-
return formatDistanceToNow(
|
|
31
|
+
return formatDistanceToNow(targetDate, {
|
|
31
32
|
addSuffix: true,
|
|
32
33
|
locale,
|
|
33
34
|
})
|