Skip to content

Commit 30eb644

Browse files
committed
web: Fix time display for recently published edges
1 parent e586796 commit 30eb644

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

apps/web/src/components/LastPublishedEdges.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
:key="`last-published-${edge.id}`"
2323
>
2424
<Issue :issuecode="edge.issuecode" hide-condition>
25-
<Ago :timestamp="new Date(edge.creationDate).getTime()" />
25+
<Ago :timestamp="new Date(edge.creationDate).getTime() / 1000" />
2626
</Issue>
2727
</div>
2828
</template>

apps/web/src/components/ViewBookcase.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,11 @@ const sortedBookcase = $computed(
248248
(issuecodesByPublicationcode.value[publicationcode1]?.indexOf(
249249
issuecode1,
250250
) || 0) -
251-
(issuecodesByPublicationcode.value[publicationcode2]?.indexOf(
252-
issuecode2,
253-
) || 0)
254-
));
251+
(issuecodesByPublicationcode.value[publicationcode2]?.indexOf(
252+
issuecode2,
253+
) || 0),
254+
)
255+
);
255256
},
256257
),
257258
);

0 commit comments

Comments
 (0)