MCPcopy Index your code
hub / github.com/agent0ai/agent-zero / getCurrentUserDateString

Function getCurrentUserDateString

webui/js/time-utils.js:193–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191 * @returns {string}
192 */
193export function getCurrentUserDateString() {
194 const now = new Date();
195 const parts = getTimeZoneParts(now, getUserTimezone());
196 return [
197 parts.year,
198 padNumber(parts.month),
199 padNumber(parts.day),
200 ].join("-");
201}
202
203/**
204 * Format an ISO string for display in local time with configurable format

Callers 4

bulkExportMemoriesFunction · 0.90
exportMemoriesFunction · 0.90
defaultTitleFunction · 0.90
getDefaultBackupMetadataFunction · 0.90

Calls 4

getTimeZonePartsFunction · 0.85
getUserTimezoneFunction · 0.85
padNumberFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected