MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / adjustTimestamp

Function adjustTimestamp

packages/db/src/services/import.service.ts:316–320  ·  view source on GitHub ↗
(timestamp: string, offsetMs: number)

Source from the content-addressed store, hash-verified

314 const sessionEvents: IClickhouseEvent[] = [];
315
316 const adjustTimestamp = (timestamp: string, offsetMs: number): string => {
317 const date = convertClickhouseDateToJs(timestamp);
318 date.setTime(date.getTime() + offsetMs);
319 return formatClickhouseDate(date);
320 };
321
322 for (const session of sessionData) {
323 const [

Callers 1

Calls 2

formatClickhouseDateFunction · 0.90

Tested by

no test coverage detected