mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
feat(event): more datetime countdown improvements
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user