refactor/google-analytics #14

Merged
zhangxiang merged 15 commits from refactor/google-analytics into dev 2026-04-23 21:31:41 +08:00
Showing only changes of commit 5ed6ee4c76 - Show all commits
+4 -3
View File
@@ -20,9 +20,10 @@ export function AboutClient() {
const now = new Date(); const now = new Date();
const diff = now.getTime() - foundingDate.getTime(); const diff = now.getTime() - foundingDate.getTime();
const days = Math.floor(diff / (1000 * 60 * 60 * 24)); const totalDays = Math.floor(diff / (1000 * 60 * 60 * 24));
const years = Math.floor(days / 365); const years = Math.floor(totalDays / 365);
const months = Math.floor((days % 365) / 30); const months = Math.floor((totalDays % 365) / 30);
const days = totalDays % 30;
setOperationTime({ days, months, years }); setOperationTime({ days, months, years });
}; };