fix timezone!

This commit is contained in:
Unknwon
2015-08-20 00:56:12 +08:00
parent 6c2536b89c
commit f114f78743
3 changed files with 24 additions and 6 deletions

View File

@ -82,8 +82,7 @@ type Action struct {
func (a *Action) AfterSet(colName string, _ xorm.Cell) {
switch colName {
case "created":
now := time.Now()
a.Created = a.Created.Add(now.Sub(now.UTC()))
a.Created = regulateTimeZone(a.Created)
}
}