An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
🎨 fix #10802 (#10803)
zsxd3b68fe56da5
diff --git a/kernel/api/asset.go b/kernel/api/asset.goindex 6d30e34dc2..c4ba7577e6 100644--- a/kernel/api/asset.go+++ b/kernel/api/asset.go@@ -70,13 +70,23 @@ func statAsset(c *gin.Context) {return}+ updated := t.ModTime().UnixMilli()+ hUpdated := t.ModTime().Format("2006-01-02 15:04:05")+ created := updated+ hCreated := hUpdated+ // Check birthtime before use+ if t.HasBirthTime() {+ created = t.BirthTime().UnixMilli()+ hCreated = t.BirthTime().Format("2006-01-02 15:04:05")+ }+ret.Data = map[string]interface{}{"size": info.Size(),"hSize": humanize.Bytes(uint64(info.Size())),- "created": t.BirthTime().UnixMilli(),- "hCreated": t.BirthTime().Format("2006-01-02 15:04:05"),- "updated": t.ModTime().UnixMilli(),- "hUpdated": t.ModTime().Format("2006-01-02 15:04:05"),+ "created": created,+ "hCreated": hCreated,+ "updated": updated,+ "hUpdated": hUpdated,}}