This commit is contained in:
Emily
2024-06-21 19:40:18 +02:00
parent 240a9cd633
commit b86a298511
2 changed files with 14 additions and 4 deletions

View File

@@ -23,8 +23,11 @@ class DateService {
public slicesData = slicesData;
getDefaultRange(slice: Slice, from?: string, to?: string) {
getDefaultRange(slice: Slice) {
return {
from: new Date(Date.now() - slicesData[slice].fromOffset).toISOString(),
to: new Date().toISOString()
}
}
getQueryDateRange(slice: Slice) {