diff --git a/web/app/components/document/sidebar.hbs b/web/app/components/document/sidebar.hbs
index d59caa1d1..991e95e99 100644
--- a/web/app/components/document/sidebar.hbs
+++ b/web/app/components/document/sidebar.hbs
@@ -285,7 +285,7 @@
-
{{or @document.created "Unknown"}}
+
{{or (parse-date @document.created) "Unknown"}}
diff --git a/web/app/components/row-results.hbs b/web/app/components/row-results.hbs
index df8d25010..fbac6639f 100644
--- a/web/app/components/row-results.hbs
+++ b/web/app/components/row-results.hbs
@@ -31,7 +31,7 @@
{{#each @docs as |doc|}}
(
- ([time, monthFormat = "short"]: [
- string | number | Date | undefined,
- undefined | "short" | "long"
- ]) => {
+ ([time, monthFormat = "short"]) => {
return parseDate(time, monthFormat);
}
);
diff --git a/web/app/types/document.d.ts b/web/app/types/document.d.ts
index dcd60e76e..0f1eba0e8 100644
--- a/web/app/types/document.d.ts
+++ b/web/app/types/document.d.ts
@@ -5,9 +5,26 @@ export interface HermesDocument {
status: string;
product?: string;
- created: string; // E.g., "Aug 16, 2023"
+
+ /**
+ * A human-readable date string, e.g., "Aug 16, 2028".
+ * Mutated in the layout by the `parse-date` helper to place
+ * the date before the month.
+ */
+ created: string;
+
+ /**
+ * A timestamp in seconds. Used for sorting.
+ */
createdTime: number;
- modifiedTime?: number; // Not available on drafts fetched as Hits from backend
+
+ /**
+ * A timestamp in seconds. Used Translated by the `time-ago` helper
+ * into a human-readable string, e.g., "2 days ago."
+ * Not available on drafts fetched as Hits from backend.
+ */
+ modifiedTime?: number;
+
docNumber: string;
docType: string;
title: string;