We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34b1966 commit 8df797fCopy full SHA for 8df797f
1 file changed
apps/roam/src/components/AdvancedNodeSearchDialog/utils.ts
@@ -56,21 +56,6 @@ export const splitWithHighlights = (
56
}));
57
};
58
59
-export const formatMetadataDate = (value: string): string => {
60
- if (!value) return "Unknown";
61
- const numericValue = Number(value);
62
- const date = Number.isFinite(numericValue)
63
- ? new Date(numericValue)
64
- : new Date(value);
65
- if (Number.isNaN(date.getTime())) return value;
66
-
67
- return date.toLocaleDateString(undefined, {
68
- year: "numeric",
69
- month: "short",
70
- day: "numeric",
71
- });
72
-};
73
74
const queryNodesForType = async (
75
node: DiscourseNode,
76
): Promise<SearchResult[]> => {
0 commit comments