MCPcopy Index your code
hub / github.com/simstudioai/sim / normalizeJiraWorklogTimestamp

Function normalizeJiraWorklogTimestamp

apps/sim/tools/jira/utils.ts:155–161  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

153 * missing, `.000` is inserted before the offset.
154 */
155export function normalizeJiraWorklogTimestamp(value: string): string {
156 let s = value.trim()
157 s = s.replace(/Z$/i, '+0000')
158 s = s.replace(/([+-]\d{2}):(\d{2})$/, '$1$2')
159 s = s.replace(/^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2})([+-]\d{4})$/, '$1.000$2')
160 return s
161}
162
163export function normalizeDomain(domain: string): string {
164 return `https://${domain

Callers 2

buildWorklogBodyFunction · 0.90
buildWorklogBodyFunction · 0.90

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected