mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
This commit is contained in:
		@@ -39,7 +39,7 @@ type Release struct {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (r *Release) BeforeInsert() {
 | 
			
		||||
	r.CreatedUnix = time.Now().UTC().Unix()
 | 
			
		||||
	r.CreatedUnix = time.Now().Unix()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (r *Release) AfterSet(colName string, _ xorm.Cell) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user