MCPcopy Create free account
hub / github.com/Ashutosh00710/github-readme-activity-graph / stringDateToUTC

Method stringDateToUTC

src/utils.ts:59–62  ·  view source on GitHub ↗
(date?: string)

Source from the content-addressed store, hash-verified

57 }
58
59 private stringDateToUTC(date?: string): string {
60 const format = 'YYYY-MM-DD';
61 return moment(date, format, true).utc().toISOString();
62 }
63
64 private validateFromIsLessThanTwo(from: string, to: string): boolean {
65 // Parse the ISO string dates into Moment objects

Callers 1

queryOptionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected