aboutsummaryrefslogtreecommitdiff
path: root/models/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/user.go b/models/user.go
index a7c87714..1050f223 100644
--- a/models/user.go
+++ b/models/user.go
@@ -108,7 +108,7 @@ type User struct {
}
func (u *User) BeforeInsert() {
- u.CreatedUnix = time.Now().UTC().Unix()
+ u.CreatedUnix = time.Now().Unix()
u.UpdatedUnix = u.CreatedUnix
}
@@ -116,7 +116,7 @@ func (u *User) BeforeUpdate() {
if u.MaxRepoCreation < -1 {
u.MaxRepoCreation = -1
}
- u.UpdatedUnix = time.Now().UTC().Unix()
+ u.UpdatedUnix = time.Now().Unix()
}
func (u *User) AfterSet(colName string, _ xorm.Cell) {