diff options
author | Unknwon <u@gogs.io> | 2015-08-20 00:56:12 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-20 00:56:12 +0800 |
commit | f114f7874303d249b2956c894b1a90b042430acf (patch) | |
tree | 63ea82c0a97dbb884de1f09620524f8d6c98f224 /models/action.go | |
parent | 6c2536b89c30ef1c99752abd50fdb3b5d2cd0691 (diff) | |
download | gitea-f114f7874303d249b2956c894b1a90b042430acf.tar.gz gitea-f114f7874303d249b2956c894b1a90b042430acf.zip |
fix timezone!
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 2c08eebbd9..2beb42e576 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) } } |