添加用户管理页

This commit is contained in:
sijinhui
2024-03-26 00:32:46 +08:00
parent d6b5c86e84
commit fc351f8734
5 changed files with 177 additions and 16 deletions

View File

@@ -1,5 +1,7 @@
export function getCurrentTime(): string {
const now = new Date();
export function getCurrentTime(now?: Date): string {
if (!now) {
const now = new Date();
}
const formatter = new Intl.DateTimeFormat("zh-CN", {
timeZone: "Asia/Shanghai", // 设置为中国标准时间
year: "numeric",