diff options
Diffstat (limited to 'models/action.go')
-rw-r--r-- | models/action.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/models/action.go b/models/action.go index 2c08eebb..2beb42e5 100644 --- a/models/action.go +++ b/models/action.go @@ -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) } } |