MCPcopy Create free account
hub / github.com/ReVanced/revanced-api / formatDatetime

Function formatDatetime

src/backend/github.ts:46–51  ·  view source on GitHub ↗
(isoString: string)

Source from the content-addressed store, hash-verified

44}
45
46function formatDatetime(isoString: string): string {
47 return isoString
48 .replace(/\.\d{3}Z$/, "")
49 .replace(/Z$/, "")
50 .replace(/[+-]\d{2}:\d{2}$/, "");
51}
52
53export class GitHubBackend implements Backend {
54 private readonly baseUrl = "https://api.github.com";

Callers 2

releaseMethod · 0.85
releasesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected