From 840459a10ac681131228b3364b35c4ddec62624d Mon Sep 17 00:00:00 2001 From: Brandon Miller Date: Sun, 17 Oct 2021 11:22:40 -0400 Subject: [PATCH] fix: Getting UTC day uses the wrong function Closes #45 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f213ebe8..58788c71 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.getUTCDate(); + const days = future.getUTCDay(); const months = future.getUTCMonth() + 1; const dayOfWeek = '?'; const years = future.getUTCFullYear();