add 30 min active user histogram
This commit is contained in:
@@ -49,3 +49,7 @@ export function formatClickhouseDate(_date: Date | string) {
|
||||
const date = typeof _date === 'string' ? new Date(_date) : _date;
|
||||
return date.toISOString().replace('T', ' ').replace(/Z+$/, '');
|
||||
}
|
||||
|
||||
export function convertClickhouseDateToJs(date: string) {
|
||||
return new Date(date.replace(' ', 'T') + 'Z');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user