This commit is contained in:
oneao committed 2025-12-10 17:30:59 +08:00
1 parent 7dd7794fd1
commit 9b2db64cc6
10 files changed
+160 -5

No files matched your search

@@ -0,0 +1 @@
export * from './time';
@@ -0,0 +1,12 @@
import dayjs from 'dayjs';
import utc from 'dayjs/plugin/utc';
import timezone from 'dayjs/plugin/timezone';
export function getBuildTime() {
dayjs.extend(utc);
dayjs.extend(timezone);
const buildTime = dayjs.tz(Date.now(), 'Asia/Shanghai').format('YYYY-MM-DD HH:mm:ss');
return buildTime;
}