From 13c798b847d8b258dcc6369cb359c70baa778f4c Mon Sep 17 00:00:00 2001 From: Darshan Date: Sat, 14 Jun 2025 12:38:04 +0530 Subject: [PATCH] fix: time display logic. --- .../database-[database]/collection-[collection]/table.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/table.svelte b/src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/table.svelte index 5c5b947e5..b996fbdff 100644 --- a/src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/table.svelte +++ b/src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/table.svelte @@ -251,12 +251,13 @@ {/if} {:else} + {@const datetime = document[id]} {@const formatted = formatColumn(document[id])} {@const isDatetimeAttribute = attr.type === 'datetime'} {#if isDatetimeAttribute} - + Timestamp - {toLocaleDateTime(formatted.whole, true, 'UTC')} + {toLocaleDateTime(datetime, true)} {:else if isString(attr) && attr.encrypt && showEncrypt}