feat(event): more datetime countdown improvements

This commit is contained in:
Sabe Jones
2021-04-08 15:43:47 -05:00
parent 5ffdf09be4
commit 23f6e9b911
9 changed files with 65 additions and 62 deletions

View File

@@ -518,8 +518,9 @@ const quests = {
completion: t('questEggHuntCompletion'),
value: 1,
category: 'pet',
event: EVENTS.spring2021,
canBuy () {
return moment().isBefore('2021-04-30T20:00-05:00');
return moment().isBefore(EVENTS.spring2021.end);
},
collect: {
plainEgg: {
@@ -3587,7 +3588,7 @@ const quests = {
category: 'hatchingPotion',
event: EVENTS.spring2021,
canBuy () {
return moment().isBetween('2021-04-01T08:00-05:00', '2021-04-30T20:00-05:00');
return moment().isBefore(EVENTS.spring2021.end);
},
boss: {
name: t('questWaffleBoss'),