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

Function pad

scripts/commit-summary.js:16–16  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

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);
18 const yyyy = adjusted.getUTCFullYear();
19 const MM = pad(adjusted.getUTCMonth() + 1);

Callers 1

formatDateTimeWithOffsetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected