解决时区问题

This commit is contained in:
Minho 2018-03-22 17:31:58 +08:00
parent 813ef8a17b
commit c23cb959e8

View File

@ -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)
}