mirror of
https://github.com/standardebooks/web.git
synced 2025-07-20 13:24:48 -04:00
Add summer donation drive
This commit is contained in:
parent
ab6ec0f2fc
commit
102125332e
1 changed files with 14 additions and 7 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue