From 102125332e83e5584148be80d88dbf3bf95e2ada Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Wed, 16 Jul 2025 11:16:55 -0500 Subject: [PATCH] Add summer donation drive --- lib/Constants.php | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/lib/Constants.php b/lib/Constants.php index 5a5bfd4b..da9d34cd 100644 --- a/lib/Constants.php +++ b/lib/Constants.php @@ -105,13 +105,20 @@ const EMAIL_LOG_FILE_PATH = '/var/log/local/standardebooks.org-email.log'; /** **`TRUE`** to enable automatic donation drives; **`FALSE`** to disable all donation drives. */ const DONATION_DRIVES_ENABLED = true; const DONATION_DRIVE_DATES = [ - // new DonationDrive( - // 'Spring drive', - // new DateTimeImmutable('Second Monday of May', SITE_TZ), - // new DateTimeImmutable('Second Monday of May 22:00 +2 weeks', SITE_TZ), - // 40, - // 20 - // ), + new DonationDrive( + 'Spring drive', + new DateTimeImmutable('Second Monday of May', SITE_TZ), + new DateTimeImmutable('Second Monday of May 22:00 +2 weeks', SITE_TZ), + 40, + 20 + ), + new DonationDrive( + 'Summer drive', + new DateTimeImmutable('Second Monday of August', SITE_TZ), + new DateTimeImmutable('Second Monday of August 22:00 +2 weeks', SITE_TZ), + 40, + 20 + ), new DonationDrive( 'Holiday drive', NOW < new DateTimeImmutable('January 7, 22:00', SITE_TZ) ? new DateTimeImmutable('November 25 -1 year', SITE_TZ) : new DateTimeImmutable('November 25', SITE_TZ),