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:
		@@ -65,7 +65,7 @@ type PullRequest struct {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (pr *PullRequest) BeforeUpdate() {
 | 
			
		||||
	pr.MergedUnix = pr.Merged.UTC().Unix()
 | 
			
		||||
	pr.MergedUnix = pr.Merged.Unix()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Note: don't try to get Pull because will end up recursive querying.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user