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:
		| @@ -7,17 +7,17 @@ package models | ||||
| import ( | ||||
| 	"code.gitea.io/gitea/modules/log" | ||||
| 	"code.gitea.io/gitea/modules/setting" | ||||
| 	"code.gitea.io/gitea/modules/util" | ||||
| 	"code.gitea.io/gitea/modules/timeutil" | ||||
| ) | ||||
|  | ||||
| // IssueDependency represents an issue dependency | ||||
| type IssueDependency struct { | ||||
| 	ID           int64          `xorm:"pk autoincr"` | ||||
| 	UserID       int64          `xorm:"NOT NULL"` | ||||
| 	IssueID      int64          `xorm:"UNIQUE(issue_dependency) NOT NULL"` | ||||
| 	DependencyID int64          `xorm:"UNIQUE(issue_dependency) NOT NULL"` | ||||
| 	CreatedUnix  util.TimeStamp `xorm:"created"` | ||||
| 	UpdatedUnix  util.TimeStamp `xorm:"updated"` | ||||
| 	ID           int64              `xorm:"pk autoincr"` | ||||
| 	UserID       int64              `xorm:"NOT NULL"` | ||||
| 	IssueID      int64              `xorm:"UNIQUE(issue_dependency) NOT NULL"` | ||||
| 	DependencyID int64              `xorm:"UNIQUE(issue_dependency) NOT NULL"` | ||||
| 	CreatedUnix  timeutil.TimeStamp `xorm:"created"` | ||||
| 	UpdatedUnix  timeutil.TimeStamp `xorm:"updated"` | ||||
| } | ||||
|  | ||||
| // DependencyType Defines Dependency Type Constants | ||||
|   | ||||
		Reference in New Issue
	
	Block a user