mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix template function DateTime (#24317)
Before, 500 error 
This commit is contained in:
		@@ -115,7 +115,7 @@ func timeSincePro(then, now time.Time, lang translation.Locale) string {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func timeSinceUnix(then, now time.Time, lang translation.Locale) template.HTML {
 | 
			
		||||
	friendlyText := then.Format("2006-01-02 15:04:05 +07:00")
 | 
			
		||||
	friendlyText := then.Format("2006-01-02 15:04:05 -07:00")
 | 
			
		||||
 | 
			
		||||
	// document: https://github.com/github/relative-time-element
 | 
			
		||||
	attrs := `tense="past"`
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user