Skip to content

Commit 1b2c148

Browse files
committed
Use local date helper
1 parent 9186673 commit 1b2c148

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • src/routes/(console)/project-[region]-[project]/databases/database-[database]/table-[table]

src/routes/(console)/project-[region]-[project]/databases/database-[database]/table-[table]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@
315315
316316
.chevron-wrapper {
317317
display: inline-flex;
318-
transition: transform 0.1s ease-out;
318+
transition: transform 0.15s ease-out;
319319
}
320320
321321
.chevron-wrapper.rotate {

src/routes/(console)/project-[region]-[project]/databases/database-[database]/table-[table]/export/+page.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import { tags, queries } from '$lib/components/filters/store';
2424
import { TagList } from '$lib/components/filters';
2525
import { Submit, trackEvent, trackError } from '$lib/actions/analytics';
26+
import { toLocalDateTimeISO } from '$lib/helpers/date';
2627
2728
let showExitModal = $state(false);
2829
let formComponent: Form;
@@ -32,12 +33,11 @@
3233
let buckets = $state<Models.BucketList | null>(null);
3334
let loadingBuckets = $state(false);
3435
35-
const timestamp = new Date()
36-
.toISOString()
36+
const timestamp = toLocalDateTimeISO(Date.now())
3737
.replace(/[:.]/g, '-')
3838
.split('T')
3939
.join('_')
40-
.slice(0, -5);
40+
.slice(0, -4);
4141
let filename = $state(`${$table.name}_${timestamp}.csv`);
4242
4343
let selectedColumns = $state<Record<string, boolean>>({});

0 commit comments

Comments
 (0)