mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 23:57:12 +01:00
fix clickhouse date timezone issues
This commit is contained in:
parent
fc3c39be3c
commit
55ba7d95ab
7 changed files with 7647 additions and 4840 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { CLICKHOUSE, RELATIONAL, KAFKA } from 'lib/constants';
|
||||
import {
|
||||
getDateFormatClickhouse,
|
||||
getDateFormatKafka,
|
||||
prisma,
|
||||
rawQueryClickhouse,
|
||||
runAnalyticsQuery,
|
||||
|
|
@ -48,7 +49,7 @@ async function clickhouseQuery(
|
|||
];
|
||||
|
||||
await rawQueryClickhouse(
|
||||
`insert into umami_dev.session (created_at, session_uuid, website_id, hostname, browser, os, device, screen, language, country)
|
||||
`insert into umami.session (created_at, session_uuid, website_id, hostname, browser, os, device, screen, language, country)
|
||||
values (${getDateFormatClickhouse(new Date())}, $1, $2, $3, $4, $5, $6, $7, $8, $9);`,
|
||||
params,
|
||||
);
|
||||
|
|
@ -63,6 +64,7 @@ async function kafkaQuery(
|
|||
const params = {
|
||||
session_uuid: session_uuid,
|
||||
website_id: website_id,
|
||||
created_at: getDateFormatKafka(new Date()),
|
||||
hostname: hostname,
|
||||
browser: browser,
|
||||
os: os,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue