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