mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48:14 +08:00
🌱 初步搞了下布局
This commit is contained in:
@@ -21,7 +21,6 @@ export function transCharacterData (data: TGApp.Game.Abyss.CharacterData[]): str
|
||||
star: item.rarity,
|
||||
};
|
||||
}) as TGApp.Sqlite.Abyss.Character[];
|
||||
console.log(JSON.stringify(res));
|
||||
return JSON.stringify(res);
|
||||
}
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
export function timeToSecond (timestamp: string): string {
|
||||
const date = new Date(Number(timestamp) * 1000);
|
||||
const year = date.getFullYear();
|
||||
const month = date.getMonth() + 1;
|
||||
const day = date.getDate();
|
||||
const month = String(date.getMonth() + 1).padStart(2, "0");
|
||||
const day = String(date.getDate()).padStart(2, "0");
|
||||
const hour = String(date.getHours()).padStart(2, "0");
|
||||
const minute = String(date.getMinutes()).padStart(2, "0");
|
||||
const second = String(date.getSeconds()).padStart(2, "0");
|
||||
|
||||
Reference in New Issue
Block a user