Skip to content

Commit 99b30c9

Browse files
authored
Update renew.user.js
1 parent 8f985a1 commit 99b30c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

renew.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
*/
8989
if (location.pathname.startsWith('/xapanel/xvps/index')) {
9090
// 计算明天的日期,格式为 YYYY-MM-DD (瑞典时区格式)
91-
const tomorrow = new Date(Date.now() + 86400000).toLocaleDateString('sv');
91+
const tomorrow = new Date(Date.now() + 86400000).toLocaleDateString('sv', { timeZone: 'Asia/Tokyo' });
9292
const expireDate = document.querySelector('tr:has(.freeServerIco) .contract__term')?.textContent;
9393

9494
console.log(`[VPS续期脚本] 检查到期时间...`);

0 commit comments

Comments
 (0)