mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Backport #34412 by wxiaoguang Fix #34398, fix #33308 Remove all `repo.ComposeCommentMetas` from templates, only use `repo` to render commit message. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -17,6 +17,7 @@ import ( | ||||
| func TestDateTime(t *testing.T) { | ||||
| 	testTz, _ := time.LoadLocation("America/New_York") | ||||
| 	defer test.MockVariableValue(&setting.DefaultUILocation, testTz)() | ||||
| 	defer test.MockVariableValue(&setting.IsProd, true)() | ||||
| 	defer test.MockVariableValue(&setting.IsInTesting, false)() | ||||
|  | ||||
| 	du := NewDateUtils() | ||||
| @@ -53,6 +54,7 @@ func TestDateTime(t *testing.T) { | ||||
| func TestTimeSince(t *testing.T) { | ||||
| 	testTz, _ := time.LoadLocation("America/New_York") | ||||
| 	defer test.MockVariableValue(&setting.DefaultUILocation, testTz)() | ||||
| 	defer test.MockVariableValue(&setting.IsProd, true)() | ||||
| 	defer test.MockVariableValue(&setting.IsInTesting, false)() | ||||
|  | ||||
| 	du := NewDateUtils() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user