diff options
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/models/repo.go b/models/repo.go index e46b54430d..44e2275509 100644 --- a/models/repo.go +++ b/models/repo.go @@ -184,12 +184,12 @@ type Repository struct { } func (repo *Repository) BeforeInsert() { - repo.CreatedUnix = time.Now().UTC().Unix() + repo.CreatedUnix = time.Now().Unix() repo.UpdatedUnix = repo.CreatedUnix } func (repo *Repository) BeforeUpdate() { - repo.UpdatedUnix = time.Now().UTC().Unix() + repo.UpdatedUnix = time.Now().Unix() } func (repo *Repository) AfterSet(colName string, _ xorm.Cell) { @@ -533,12 +533,12 @@ type Mirror struct { } func (m *Mirror) BeforeInsert() { - m.NextUpdateUnix = m.NextUpdate.UTC().Unix() + m.NextUpdateUnix = m.NextUpdate.Unix() } func (m *Mirror) BeforeUpdate() { - m.UpdatedUnix = time.Now().UTC().Unix() - m.NextUpdateUnix = m.NextUpdate.UTC().Unix() + m.UpdatedUnix = time.Now().Unix() + m.NextUpdateUnix = m.NextUpdate.Unix() } func (m *Mirror) AfterSet(colName string, _ xorm.Cell) { |