From 288f556ff949b6bddd855fc75c20ab97524185a9 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Tue, 22 Jun 2021 19:18:21 -0500 Subject: [PATCH 1/2] fix(event): put start time on potions --- website/common/script/content/hatching-potions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/common/script/content/hatching-potions.js b/website/common/script/content/hatching-potions.js index 22622ad9d7..3e89d72f80 100644 --- a/website/common/script/content/hatching-potions.js +++ b/website/common/script/content/hatching-potions.js @@ -219,7 +219,7 @@ const premium = { }), event: EVENTS.summer2021, canBuy () { - return moment().isBefore(EVENTS.summer2021.end); + return moment().isBetween(EVENTS.summer2021.start, EVENTS.summer2021.end); }, }, Glow: { @@ -386,7 +386,7 @@ const premium = { previousDate: t('juneYYYY', { year: 2020 }), }), canBuy () { - return moment().isBefore(EVENTS.summer2021.end); + return moment().isBetween(EVENTS.summer2021.start, EVENTS.summer2021.end); }, }, Windup: { @@ -473,7 +473,7 @@ const premium = { date: t('dateEndJuly'), }), canBuy () { - return moment().isBefore(EVENTS.summer2021.end); + return moment().isBetween(EVENTS.summer2021.start, EVENTS.summer2021.end); }, }, }; From dc54707e1b6e29e17bef734e4420d0ac1284d1f9 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Tue, 22 Jun 2021 19:18:27 -0500 Subject: [PATCH 2/2] 4.197.1 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2b2d2daed2..89d5bcfa87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "habitica", - "version": "4.197.0", + "version": "4.197.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index e4dfd4f290..fc4bf1b6ee 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "habitica", "description": "A habit tracker app which treats your goals like a Role Playing Game.", - "version": "4.197.0", + "version": "4.197.1", "main": "./website/server/index.js", "dependencies": { "@babel/core": "^7.14.3",