diff --git a/backend/package.json b/backend/package.json index 03dd931..6405d7c 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.247", + "version": "2.14.248", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/utils/flow.js b/backend/src/utils/flow.js index 5259fc1..b7f259d 100644 --- a/backend/src/utils/flow.js +++ b/backend/src/utils/flow.js @@ -172,6 +172,7 @@ export function getRmainingDays(opt = {}) { resetDate.setDate(resetDate.getDate() + cycleDays); } + resetDate.setHours(0, 0, 0, 0); const timeDiff = resetDate.getTime() - today.getTime(); const daysDiff = Math.ceil(timeDiff / (1000 * 3600 * 24));