feat: align with upstream 1.5.9.9

This commit is contained in:
2026-09-12 18:21:11 +08:00
commit 34f0679117
805 changed files with 376275 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
/**
* 服务器时间工具
*/
/** 获取服务端时间戳 (毫秒) */
export function getServerTimestamp(): number {
return Date.now()
}
/** 获取服务端 Date 对象 */
export function getServerDate(): Date {
return new Date()
}
// 绑定到 globalThis,供 isomorphic 代码(如 app/utils/timeUtils.ts)安全调用
if (typeof globalThis !== 'undefined') {
;(globalThis as any).getServerTimestamp = getServerTimestamp
}