Skip to content

Commit 381d936

Browse files
authored
fix: dates and 14 day selector (supabase#21783)
1 parent 7548fd1 commit 381d936

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/studio/components/interfaces/Reports/Reports.constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const REPORTS_DATEPICKER_HELPERS: DatetimeHelper[] = [
1818
},
1919
{
2020
text: 'Last 14 days',
21-
calcFrom: () => dayjs().subtract(7, 'day').startOf('day').toISOString(),
21+
calcFrom: () => dayjs().subtract(14, 'day').startOf('day').toISOString(),
2222
calcTo: () => '',
2323
},
2424
{

apps/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ export const CacheHitRateChartRenderer = (
1313
) => {
1414
const stackedData = props.data.flatMap((datum) => [
1515
{
16-
timestamp: datum.timestamp,
16+
timestamp: +datum.timestamp / 1000,
1717
count: datum.hit_count,
1818
type: 'hit',
1919
},
2020
{
21-
timestamp: datum.timestamp,
21+
timestamp: +datum.timestamp / 1000,
2222
count: datum.miss_count,
2323
type: 'miss',
2424
},
@@ -50,7 +50,7 @@ export const TopCacheMissesRenderer = (
5050

5151
return (
5252
<>
53-
<h4>Top Cache Misses</h4>
53+
<h3 className="py-4 px-6">Top Cache Misses</h3>
5454
<Table
5555
head={
5656
<>

0 commit comments

Comments
 (0)