From fa5a1cb54f70ffab621f13749d835983101a50f4 Mon Sep 17 00:00:00 2001 From: Tobias Kunicke Date: Sat, 6 Feb 2016 00:08:02 +0100 Subject: [PATCH] regulate timezone for milestone.deadline --- models/issue.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/issue.go b/models/issue.go index 6188da5c630..326454630e5 100644 --- a/models/issue.go +++ b/models/issue.go @@ -1179,6 +1179,7 @@ func (m *Milestone) AfterSet(colName string, _ xorm.Cell) { if m.Deadline.Year() == 9999 { return } + m.Deadline = regulateTimeZone(m.Deadline) m.DeadlineString = m.Deadline.Format("2006-01-02") if time.Now().After(m.Deadline) {