From 524965bcd6ed18a1bb3ed6a2ba9540f1d9700328 Mon Sep 17 00:00:00 2001 From: Brandon Miller Date: Sun, 17 Oct 2021 11:49:51 -0400 Subject: [PATCH] fix: Revert change to getting UTC day --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 58788c71..f213ebe8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -211,7 +211,7 @@ export class Certbot extends cdk.Construct { const future = new Date(date.getTime() + minutesToAdd * 60000); const minutes = future.getUTCMinutes(); const hours = future.getUTCHours(); - const days = future.getUTCDay(); + const days = future.getUTCDate(); const months = future.getUTCMonth() + 1; const dayOfWeek = '?'; const years = future.getUTCFullYear();