MCPcopy Create free account
hub / github.com/SKVNDR/FastDork / formatListUpdatedAt

Function formatListUpdatedAt

Script/FastDork.js:150–166  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

148 }
149
150 function formatListUpdatedAt(value) {
151 if (!value) return "";
152 const date = new Date(value);
153 if (Number.isNaN(date.getTime())) return "";
154
155 const formatted = new Intl.DateTimeFormat(undefined, {
156 day: "2-digit",
157 month: "2-digit",
158 year: "2-digit",
159 hour: "2-digit",
160 minute: "2-digit",
161 hour12: false,
162 })
163 .format(date)
164 .replace(",", "");
165 return `Updated ${formatted}`;
166 }
167
168 function setPayloadUpdatedAtText(text) {
169 if (!UI.payloadUpdatedAt) return;

Callers 2

updatePayloadUpdatedAtFunction · 0.85
saveDorkListContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected