Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update workspace-subscription-fields.ts

Steven Teyb100b87b5747
diff --git a/apps/web/lib/stripe/workspace-subscription-fields.ts b/apps/web/lib/stripe/workspace-subscription-fields.ts
index 88161b0728..09594fc5b2 100644
--- a/apps/web/lib/stripe/workspace-subscription-fields.ts
+++ b/apps/web/lib/stripe/workspace-subscription-fields.ts
@@ -48,7 +48,7 @@ export function getSubscriptionBillingFields(
return {
billingCycleStart:
currentPeriodStart != null
- ? new Date(Number(currentPeriodStart) * 1000).getDay() // get day number from unix timestamp
+ ? new Date(Number(currentPeriodStart) * 1000).getUTCDate() // get UTC day of month from unix timestamp
: undefined,
billingCycleEndsAt:
currentPeriodEnd != null