mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-06-28 15:45:35 +08:00
解决时区问题
This commit is contained in:
parent
813ef8a17b
commit
c23cb959e8
@ -84,6 +84,8 @@ func (m *Document) InsertOrUpdate(cols ...string) error {
|
||||
m.ModifyTime = time.Now().Local()
|
||||
_, err = o.Update(m)
|
||||
} else {
|
||||
m.ModifyTime = time.Now().Local()
|
||||
m.CreateTime = time.Now().Local()
|
||||
_, err = o.Insert(m)
|
||||
NewBook().ResetDocumentNumber(m.BookId)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user