Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Update timestamp scale to convert seconds to miliseconds

天舟f441249c1dbe
diff --git a/frontend/src/utils/util.ts b/frontend/src/utils/util.ts
index c2d40c4c9f..2cbc0b5506 100644
--- a/frontend/src/utils/util.ts
+++ b/frontend/src/utils/util.ts
@@ -17,7 +17,7 @@ export function isRelease() {
}
export function humanizeTs(ts: number) {
- const time = moment.utc(ts);
+ const time = moment.utc(ts * 1000);
if (moment().year() == time.year()) {
if (moment().dayOfYear() == time.dayOfYear()) {
return time.local().format("HH:mm");
diff --git a/frontend/src/views/IssueHighlightPanel.vue b/frontend/src/views/IssueHighlightPanel.vue
index 71b50df776..fefe175b9d 100644
--- a/frontend/src/views/IssueHighlightPanel.vue
+++ b/frontend/src/views/IssueHighlightPanel.vue
@@ -31,7 +31,7 @@
>
at
<span href="#" class="font-medium text-control">{{
- moment(issue.updatedTs).format("LLL")
+ moment(issue.updatedTs * 1000).format("LLL")
}}</span>
</p>
</div>
diff --git a/frontend/src/views/IssueSidebar.vue b/frontend/src/views/IssueSidebar.vue
index 4a237aa8e6..e97d797bcf 100644
--- a/frontend/src/views/IssueSidebar.vue
+++ b/frontend/src/views/IssueSidebar.vue
@@ -130,14 +130,14 @@
Updated
</h2>
<span class="textfield col-span-2">
- {{ moment(issue.updatedTs).format("LLL") }}</span
+ {{ moment(issue.updatedTs * 1000).format("LLL") }}</span
>
<h2 class="textlabel flex items-center col-span-1 col-start-1">
Created
</h2>
<span class="textfield col-span-2">
- {{ moment(issue.createdTs).format("LLL") }}</span
+ {{ moment(issue.createdTs * 1000).format("LLL") }}</span
>
<h2 class="textlabel flex items-center col-span-1 col-start-1">
Creator