mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-03 20:15:59 +01:00
Add TODO to retrieving the current timestamp.
This commit is contained in:
@@ -127,7 +127,8 @@ trait IssuesControllerBase extends ControllerBase {
|
||||
getMilestone(owner, repository, milestoneId) match {
|
||||
case None => NotFound()
|
||||
case Some(m) => {
|
||||
val currentDate = new Timestamp(System.currentTimeMillis) // TODO move to trait?
|
||||
// TODO make a common function to get the current timestamp.
|
||||
val currentDate = new Timestamp(System.currentTimeMillis)
|
||||
updateMilestone(m.copy(closedDate = Some(currentDate)))
|
||||
redirect("/%s/%s/issues/milestones".format(owner, repository))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user