aboutsummaryrefslogtreecommitdiff
path: root/models/issue.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/models/issue.go b/models/issue.go
index 5e5c79c2..d8c4809f 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -93,8 +93,7 @@ func (i *Issue) AfterSet(colName string, _ xorm.Cell) {
log.Error(3, "GetUserByID[%d]: %v", i.ID, err)
}
case "created":
- now := time.Now()
- i.Created = i.Created.Add(now.Sub(now.UTC()))
+ i.Created = regulateTimeZone(i.Created)
}
}
@@ -1360,8 +1359,7 @@ func (c *Comment) AfterSet(colName string, _ xorm.Cell) {
}
}
case "created":
- now := time.Now()
- c.Created = c.Created.Add(now.Sub(now.UTC()))
+ c.Created = regulateTimeZone(c.Created)
}
}