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

Function getUserTimezone

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

Source from the content-addressed store, hash-verified

227 * @returns {string} Timezone name (e.g., 'America/New_York')
228 */
229export function getUserTimezone() {
230 const configured = String(globalThis.runtimeInfo?.timezone || "").trim();
231 if (configured && configured !== "auto") return configured;
232 return getBrowserTimezone();
233}
234
235export function getBrowserTimezone() {
236 return Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC";

Callers 15

formatTimestampFunction · 0.90
_pollLoopFunction · 0.90
_pollLoopFunction · 0.90
updateUserTimeFunction · 0.90
buildStateRequestPayloadFunction · 0.90
pollFunction · 0.90
defaultScheduleFunction · 0.90
normalizeScheduleFunction · 0.90
listTasksFunction · 0.90
runTaskFunction · 0.90
deleteTaskFunction · 0.90

Calls 1

getBrowserTimezoneFunction · 0.85

Tested by

no test coverage detected