Skip to content

Commit 2b4a495

Browse files
authored
Merge pull request #2021 from appwrite/fix-time-display
Fix: time display regression on tables
2 parents 83aadb9 + 13c798b commit 2b4a495

File tree

1 file changed

+3
-2
lines changed
  • src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,13 @@
251251
</Button.Button>
252252
{/if}
253253
{:else}
254+
{@const datetime = document[id]}
254255
{@const formatted = formatColumn(document[id])}
255256
{@const isDatetimeAttribute = attr.type === 'datetime'}
256257
{#if isDatetimeAttribute}
257-
<DualTimeView time={formatted.whole}>
258+
<DualTimeView time={datetime}>
258259
<span slot="title">Timestamp</span>
259-
{toLocaleDateTime(formatted.whole, true, 'UTC')}
260+
{toLocaleDateTime(datetime, true)}
260261
</DualTimeView>
261262
{:else if isString(attr) && attr.encrypt && showEncrypt}
262263
<button on:click={(e) => e.preventDefault()}>

0 commit comments

Comments
 (0)