fix(immersion-tracker): preserve timestamps under Bun libsql

This commit is contained in:
sudacode committed 2026-04-11 14:49:54 -07:00
1 parent c71482cb44
commit c1c40c8d40
9 files changed
+522 -9

No files matched your search

@@ -345,7 +345,11 @@ export function fromDbTimestamp(ms: number | bigint | string | null | undefined)
if (typeof ms === 'bigint') {
return Number(ms);
}
return Number(ms);
const normalized = normalizeTimestampString(ms);
if (/^-?\d+$/.test(normalized)) {
return Number(BigInt(normalized));
}
return Math.trunc(Number.parseFloat(normalized));
}
function getNumericCalendarValue(