forked from forgejo/forgejo
fix timezone!
This commit is contained in:
parent
6c2536b89c
commit
f114f78743
3 changed files with 24 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue