Add summer donation drive

This commit is contained in:
Alex Cabal 2025-07-16 11:16:55 -05:00
parent ab6ec0f2fc
commit 102125332e

View file

@ -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),