mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-22 14:08:01 +02:00
fix timezone!
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user