From 09495fa60773e2955bc3980ca1cdfc0720d70631 Mon Sep 17 00:00:00 2001 From: xream Date: Mon, 11 Mar 2024 19:33:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E5=A4=A9=E6=95=B0=E5=BE=AE=E5=A6=99=E7=9A=84=E5=81=8F=E5=B7=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/utils/flow.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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));