@dative-gpi/foundation-core-components 1.1.14-fix-last → 1.1.14-fix-last2

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.
@@ -182,7 +182,7 @@ export default defineComponent({
182
182
  userValidityLabel,
183
183
  userTypeLabel,
184
184
  isSelected,
185
- formatLastActivity
185
+ formatLastActivity,
186
186
  };
187
187
  }
188
188
  });
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "url": "https://github.com/Dative-GPI/foundation-shared-ui.git"
5
5
  },
6
6
  "sideEffects": false,
7
- "version": "1.1.14-fix-last",
7
+ "version": "1.1.14-fix-last2",
8
8
  "description": "",
9
9
  "publishConfig": {
10
10
  "access": "public"
@@ -13,11 +13,11 @@
13
13
  "author": "",
14
14
  "license": "ISC",
15
15
  "dependencies": {
16
- "@dative-gpi/foundation-core-domain": "1.1.14-fix-last",
17
- "@dative-gpi/foundation-core-services": "1.1.14-fix-last",
18
- "@dative-gpi/foundation-shared-components": "1.1.14-fix-last",
19
- "@dative-gpi/foundation-shared-domain": "1.1.14-fix-last",
20
- "@dative-gpi/foundation-shared-services": "1.1.14-fix-last"
16
+ "@dative-gpi/foundation-core-domain": "1.1.14-fix-last2",
17
+ "@dative-gpi/foundation-core-services": "1.1.14-fix-last2",
18
+ "@dative-gpi/foundation-shared-components": "1.1.14-fix-last2",
19
+ "@dative-gpi/foundation-shared-domain": "1.1.14-fix-last2",
20
+ "@dative-gpi/foundation-shared-services": "1.1.14-fix-last2"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@dative-gpi/bones-ui": "^1.0.0",
@@ -29,5 +29,5 @@
29
29
  "sass": "1.71.1",
30
30
  "sass-loader": "13.3.2"
31
31
  },
32
- "gitHead": "0e133d0134125e2b5981b29204dbe6627b221ea9"
32
+ "gitHead": "f34c2babc69a7d392df99fcb46e6107ee09eed71"
33
33
  }
package/utils/users.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { useDateFormat } from "@dative-gpi/foundation-shared-services/composables";
2
2
  import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
3
3
  import { UserType, UserValidityState } from "@dative-gpi/foundation-shared-domain/enums";
4
+ import { isoToEpoch } from "@dative-gpi/foundation-shared-domain/tools";
4
5
 
5
6
  const { $tr } = useTranslationsProvider();
6
7
  const { epochToShortTimeFormat } = useDateFormat();
@@ -37,6 +38,6 @@ export const formatLastActivity = (value?: string | null): string => {
37
38
  if (!value) {
38
39
  return "";
39
40
  }
40
- const timestamp = new Date(value).getTime();
41
+ const timestamp = isoToEpoch(value);
41
42
  return epochToShortTimeFormat(timestamp);
42
43
  };