mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-29 16:06:36 +08:00
style: restore Prettier formatting in renewal.ts (#298)
This commit is contained in:
@@ -14,6 +14,7 @@ const addMonths = (timestamp: number, months: number): number => {
|
||||
const next = new Date(date);
|
||||
|
||||
next.setMonth(next.getMonth() + months);
|
||||
|
||||
return next.getTime();
|
||||
};
|
||||
|
||||
@@ -72,7 +73,9 @@ export const getNodeRenewalSnapshot = (
|
||||
nextDueTime = advanced;
|
||||
}
|
||||
|
||||
const diffDays = Math.ceil((nextDueTime - Date.now()) / (1000 * 60 * 60 * 24));
|
||||
const diffDays = Math.ceil(
|
||||
(nextDueTime - Date.now()) / (1000 * 60 * 60 * 24),
|
||||
);
|
||||
|
||||
if (diffDays <= 0) {
|
||||
return {
|
||||
@@ -110,5 +113,6 @@ export const formatNodeRenewalTime = (timestamp?: number): string => {
|
||||
if (!timestamp || timestamp <= 0) {
|
||||
return "未设置";
|
||||
}
|
||||
|
||||
return new Date(timestamp).toLocaleString();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user