mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix template function DateTime (#24317)
Before, 500 error 
This commit is contained in:
		@@ -91,9 +91,9 @@
 | 
			
		||||
							<td>{{if .IsRestricted}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
 | 
			
		||||
							<td>{{if index $.UsersTwoFaStatus .ID}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
 | 
			
		||||
							<td>{{.NumRepos}}</td>
 | 
			
		||||
							<td>{{DateTime "short" .CreatedUnix.FormatLong .CreatedUnix.FormatShort}}</td>
 | 
			
		||||
							<td>{{DateTime "short" .CreatedUnix}}</td>
 | 
			
		||||
							{{if .LastLoginUnix}}
 | 
			
		||||
								<td>{{DateTime "short" .LastLoginUnix.FormatLong .LastLoginUnix.FormatShort}}</td>
 | 
			
		||||
								<td>{{DateTime "short" .LastLoginUnix}}</td>
 | 
			
		||||
							{{else}}
 | 
			
		||||
								<td><span>{{$.locale.Tr "admin.users.never_login"}}</span></td>
 | 
			
		||||
							{{end}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user