mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-12 21:13:43 +08:00
fix: 'end_date must come after start_date' error
fix: Pressing the Usage Check Button prompts an error message "end_date must come after start_date"
This commit is contained in:
@@ -102,7 +102,7 @@ export async function requestUsage() {
|
|||||||
.getDate()
|
.getDate()
|
||||||
.toString()
|
.toString()
|
||||||
.padStart(2, "0")}`;
|
.padStart(2, "0")}`;
|
||||||
const ONE_DAY = 2 * 24 * 60 * 60 * 1000;
|
const ONE_DAY = 1 * 24 * 60 * 60 * 1000;
|
||||||
const now = new Date(Date.now() + ONE_DAY);
|
const now = new Date(Date.now() + ONE_DAY);
|
||||||
const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
||||||
const startDate = formatDate(startOfMonth);
|
const startDate = formatDate(startOfMonth);
|
||||||
|
Reference in New Issue
Block a user