MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / formatDateInTimeZone

Function formatDateInTimeZone

scripts/commit-summary.js:13–14  ·  view source on GitHub ↗
(date, timeZone)

Source from the content-addressed store, hash-verified

11const LOCAL_TZ_OFFSET = '+08:00';
12const LOCAL_TZ_OFFSET_MINUTES = 8 * 60;
13const formatDateInTimeZone = (date, timeZone) =>
14 new Intl.DateTimeFormat('en-CA', { timeZone }).format(date);
15const formatDateTimeWithOffset = (date, offsetMinutes) => {
16 const pad = (value) => String(value).padStart(2, '0');
17 const adjusted = new Date(date.getTime() + offsetMinutes * 60 * 1000);

Callers 2

commit-summary.jsFile · 0.85
summarizeWithGeminiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected