MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / utcDate

Function utcDate

packages/billing/src/__tests__/subscription.test.ts:31–34  ·  view source on GitHub ↗
(year: number, month: number, day: number)

Source from the content-addressed store, hash-verified

29// Helper to create a UTC date on a specific day-of-week
30// dayOfWeek: 0=Sun, 1=Mon, ..., 6=Sat
31function utcDate(year: number, month: number, day: number): Date {
32 const d = new Date(Date.UTC(year, month - 1, day))
33 return d
34}
35
36function createMockSubscription(overrides?: Partial<{
37 stripe_subscription_id: string

Callers 2

createMockSubscriptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected