Fix sort by date

This commit is contained in:
Cohee
2023-09-10 14:30:29 +03:00
parent e2e32da4e6
commit d81c94de0b
2 changed files with 11 additions and 10 deletions

View File

@@ -2178,6 +2178,7 @@ app.post("/importcharacter", urlencodedParser, async function (request, response
importRisuSprites(jsonData);
unsetFavFlag(jsonData);
jsonData = readFromV2(jsonData);
jsonData["create_date"] = humanizedISO8601DateTime();
png_name = getPngName(jsonData.data?.name || jsonData.name);
let char = JSON.stringify(jsonData);
charaWrite(defaultAvatarPath, char, png_name, response, { file_name: png_name });