fix: plugins: HFS.misc.formatTimestamp was not the one used by the frontend, but the backend implementation

Massimo Melina committed Apr 4, 2025 at 12:21 UTC 73c4fcc9aa7228495f7ddd6b8d990f792a33f45a
1 file changed +2 -1
frontend/src/misc.ts
+2 -1
@@ -94,11 +94,12 @@ export function formatTimestamp(x: number | string | Date, options?: Intl.DateTi
94 return !x ? '' : (x instanceof Date ? x : new Date(x)).toLocaleString(cached, options)
95 }
96
97 +import * as thisModule from './misc'
98 Object.assign(getHFS(), {
99 h, React, state, t, _, dialogLib, apiCall, useApi, reloadList, logout, Icon, hIcon, iconBtn, useBatch, fileShow,
100 toast, domOn, getNotifications, debounceAsync, useSnapState, DirEntry, Btn,
101 fileShowComponents: { Video, Audio },
101 - misc: { ...cross, ...shared },
102 + misc: { ...cross, ...shared, ...thisModule },
103 emit: hfsEvent,
104 onEvent: onHfsEvent,
105 watchState(k: string, cb: (v: any) => void, callNow=false) {