From 250be011c769decc729ec7dcc318b24e0613e73d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 23 Jul 2016 20:24:44 +0800 Subject: Remove redundant Unix timestamp method call Unix() already uses UTC as timezone --- models/login.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'models/login.go') diff --git a/models/login.go b/models/login.go index dd90c5d8..84a5c219 100644 --- a/models/login.go +++ b/models/login.go @@ -120,12 +120,12 @@ type LoginSource struct { } func (s *LoginSource) BeforeInsert() { - s.CreatedUnix = time.Now().UTC().Unix() + s.CreatedUnix = time.Now().Unix() s.UpdatedUnix = s.CreatedUnix } func (s *LoginSource) BeforeUpdate() { - s.UpdatedUnix = time.Now().UTC().Unix() + s.UpdatedUnix = time.Now().Unix() } // Cell2Int64 converts a xorm.Cell type to int64, -- cgit v1.2.3