mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Display ui time with customize time location (#7792)
* display ui time with customize time location * fix lint * rename UILocation to DefaultUILocation * move time related functions to modules/timeutil * fix tests * fix tests * fix build * fix swagger
This commit is contained in:
		| @@ -24,6 +24,7 @@ import ( | ||||
| 	"code.gitea.io/gitea/modules/log" | ||||
| 	"code.gitea.io/gitea/modules/process" | ||||
| 	"code.gitea.io/gitea/modules/setting" | ||||
| 	"code.gitea.io/gitea/modules/timeutil" | ||||
| ) | ||||
|  | ||||
| const ( | ||||
| @@ -78,7 +79,7 @@ var sysStatus struct { | ||||
| } | ||||
|  | ||||
| func updateSystemStatus() { | ||||
| 	sysStatus.Uptime = base.TimeSincePro(startTime, "en") | ||||
| 	sysStatus.Uptime = timeutil.TimeSincePro(startTime, "en") | ||||
|  | ||||
| 	m := new(runtime.MemStats) | ||||
| 	runtime.ReadMemStats(m) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user