mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Render UTC dates in sessions.
This commit is contained in:
parent
c79720ae1d
commit
deb9dd60df
10 changed files with 35 additions and 62 deletions
|
|
@ -19,7 +19,7 @@ async function relationalQuery(websiteId: string, sessionId: string) {
|
|||
}
|
||||
|
||||
async function clickhouseQuery(websiteId: string, sessionId: string) {
|
||||
const { rawQuery } = clickhouse;
|
||||
const { rawQuery, getDateStringSQL } = clickhouse;
|
||||
|
||||
return rawQuery(
|
||||
`
|
||||
|
|
@ -34,8 +34,8 @@ async function clickhouseQuery(websiteId: string, sessionId: string) {
|
|||
country,
|
||||
subdivision1,
|
||||
city,
|
||||
min(min_time) as firstAt,
|
||||
max(max_time) as lastAt,
|
||||
${getDateStringSQL('min(min_time)')} as firstAt,
|
||||
${getDateStringSQL('max(max_time)')} as lastAt,
|
||||
uniq(visit_id) visits,
|
||||
sum(views) as views,
|
||||
sum(events) as events,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue