MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / formatUpdatedDate

Function formatUpdatedDate

src/pages/plugin/plugin.view.js:84–96  ·  view source on GitHub ↗
(dateString)

Source from the content-addressed store, hash-verified

82 }
83
84 const formatUpdatedDate = (dateString) => {
85 if (!dateString) return null;
86
87 try {
88 const updateTime = dayjs.utc(dateString);
89 if (!updateTime.isValid()) return null;
90
91 return updateTime.fromNow();
92 } catch (error) {
93 console.warn("Error parsing date with dayjs:", dateString, error);
94 return null;
95 }
96 };
97
98 return (
99 <div className="main" id="plugin">

Callers 1

plugin.view.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected