Преглед изворни кода

regulate timezone for milestone.deadline

Tobias Kunicke пре 9 година
родитељ
комит
fa5a1cb54f
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      models/issue.go

+ 1 - 0
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) {