MCPcopy Create free account
hub / github.com/volcengine/OpenViking / localISO

Function localISO

examples/codex-memory-plugin/scripts/debug-log.mjs:31–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31function localISO() {
32 const d = new Date();
33 const off = d.getTimezoneOffset();
34 const sign = off <= 0 ? "+" : "-";
35 const abs = Math.abs(off);
36 const local = new Date(d.getTime() - off * 60000);
37 return local.toISOString().replace(
38 "Z",
39 `${sign}${String(Math.floor(abs / 60)).padStart(2, "0")}:${String(abs % 60).padStart(2, "0")}`,
40 );
41}
42
43const noop = () => {};
44

Callers 2

logFunction · 0.70
logErrorFunction · 0.70

Calls 2

StringFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected