return time string

This commit is contained in:
Alex Holliday committed 2025-06-17 13:41:25 +08:00
1 parent 1298b23844
commit 9c40021318
3 files changed
+8 -23

No files matched your search

+2 -2
View File
@@ -104,10 +104,10 @@ export const getHumanReadableDuration = (ms) => {
if (result.length === 0) {
// fallback for durations < 1s
return { time: 0, units: "seconds" };
return "0s";
}
return { time: result.join(" "), units: null };
return result.join(" ");
};
export const formatDate = (date, customOptions) => {