1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-19 16:58:37 +00:00

fix timezone

This commit is contained in:
Unknwon
2015-08-20 00:32:18 +08:00
parent a5b09b30d0
commit 6c2536b89c
3 changed files with 6 additions and 4 deletions

View File

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