summaryrefslogtreecommitdiffstats
path: root/models/issue_milestone.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issue_milestone.go')
-rw-r--r--models/issue_milestone.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/models/issue_milestone.go b/models/issue_milestone.go
index f279dda195..b1505c12cb 100644
--- a/models/issue_milestone.go
+++ b/models/issue_milestone.go
@@ -10,7 +10,8 @@ import (
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
api "code.gitea.io/gitea/modules/structs"
- "code.gitea.io/gitea/modules/util"
+ "code.gitea.io/gitea/modules/timeutil"
+
"github.com/go-xorm/xorm"
)
@@ -29,8 +30,8 @@ type Milestone struct {
IsOverdue bool `xorm:"-"`
DeadlineString string `xorm:"-"`
- DeadlineUnix util.TimeStamp
- ClosedDateUnix util.TimeStamp
+ DeadlineUnix timeutil.TimeStamp
+ ClosedDateUnix timeutil.TimeStamp
TotalTrackedTime int64 `xorm:"-"`
}
@@ -53,7 +54,7 @@ func (m *Milestone) AfterLoad() {
}
m.DeadlineString = m.DeadlineUnix.Format("2006-01-02")
- if util.TimeStampNow() >= m.DeadlineUnix {
+ if timeutil.TimeStampNow() >= m.DeadlineUnix {
m.IsOverdue = true
}
}