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

Function convertClickhouseDateToJs

packages/db/src/clickhouse/client.ts:405–407  ·  view source on GitHub ↗
(date: string)

Source from the content-addressed store, hash-verified

403}
404
405export function convertClickhouseDateToJs(date: string) {
406 return new Date(`${date.replace(' ', 'T')}Z`);
407}
408
409const ROLLUP_DATE_PREFIX = '1970-01-01';
410export function isClickhouseDefaultMinDate(date: string): boolean {

Callers 14

transformSessionFunction · 0.90
createRevenueQueryMethod · 0.90
transformSessionToEventFunction · 0.90
transformEventFunction · 0.90
getReferrerSpikesFunction · 0.90
transformProfileFunction · 0.90
adjustTimestampFunction · 0.90
realtime.tsFile · 0.90
event.tsFile · 0.90
createSessionEndFunction · 0.90
isLiveFunction · 0.90

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected