@dative-gpi/foundation-shared-services 0.0.178 → 0.0.180

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.
@@ -176,6 +176,15 @@ export const useAppTimeZone = () => {
176
176
  }
177
177
  };
178
178
 
179
+ const epochToTimeOnlyFormat = (value: number | null | undefined): string => {
180
+ if (value == null || !isFinite(value)) {
181
+ return "";
182
+ }
183
+ const date = new Date(0);
184
+ date.setUTCMilliseconds(value - getMachineOffsetMillis() + getUserOffsetMillis());
185
+ return format(date, "HH:mm:ss", { locale: getLocale() });
186
+ };
187
+
179
188
  const epochToShortTimeFormat = (value: number | null | undefined): string => {
180
189
  if (value == null || !isFinite(value)) {
181
190
  return "";
@@ -271,6 +280,7 @@ export const useAppTimeZone = () => {
271
280
  epochToLongTimeFormat,
272
281
  epochToShortDateFormat,
273
282
  epochToShortTimeFormat,
283
+ epochToTimeOnlyFormat,
274
284
  parseForPicker,
275
285
  formatCurrentForPicker,
276
286
  formatFromPicker,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-shared-services",
3
3
  "sideEffects": false,
4
- "version": "0.0.178",
4
+ "version": "0.0.180",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -10,7 +10,7 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@dative-gpi/foundation-shared-domain": "0.0.178"
13
+ "@dative-gpi/foundation-shared-domain": "0.0.180"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "@dative-gpi/bones-ui": "^0.0.75",
@@ -18,5 +18,5 @@
18
18
  "vue": "^3.4.29",
19
19
  "vue-router": "^4.3.0"
20
20
  },
21
- "gitHead": "965b5f2c9bdb926c03d5a17f94991d2fc2621e51"
21
+ "gitHead": "c7c4eede33fbe20a0c69429865dc52d3a06925d7"
22
22
  }