mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 00:54:43 +01:00 
			
		
		
		
	Use local timezone to compare (#10446)
This commit is contained in:
		
							parent
							
								
									6baa07ddf3
								
							
						
					
					
						commit
						dc88b786e9
					
				| @ -68,18 +68,19 @@ func testViewRepo(t *testing.T) { | ||||
| 		items = append(items, f) | ||||
| 	}) | ||||
| 
 | ||||
| 	commitT := time.Date(2017, time.June, 14, 13, 54, 21, 0, time.UTC).In(time.Local).Format(time.RFC1123) | ||||
| 	assert.EqualValues(t, []file{ | ||||
| 		{ | ||||
| 			fileName:   "doc", | ||||
| 			commitID:   "2a47ca4b614a9f5a43abbd5ad851a54a616ffee6", | ||||
| 			commitMsg:  "init project", | ||||
| 			commitTime: time.Date(2017, time.June, 14, 13, 54, 21, 0, time.UTC).Format(time.RFC1123), | ||||
| 			commitTime: commitT, | ||||
| 		}, | ||||
| 		{ | ||||
| 			fileName:   "README.md", | ||||
| 			commitID:   "2a47ca4b614a9f5a43abbd5ad851a54a616ffee6", | ||||
| 			commitMsg:  "init project", | ||||
| 			commitTime: time.Date(2017, time.June, 14, 13, 54, 21, 0, time.UTC).Format(time.RFC1123), | ||||
| 			commitTime: commitT, | ||||
| 		}, | ||||
| 	}, items) | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user