mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 05:25:50 +01:00
Create java.util.Date TypeMapper. And add the currentDate method.
This commit is contained in:
@@ -38,11 +38,9 @@ trait AccountControllerBase extends ControllerBase {
|
||||
|
||||
post("/:userName/_edit", form)(ownerOnly { form =>
|
||||
val userName = params("userName")
|
||||
val currentDate = new java.sql.Timestamp(System.currentTimeMillis) // TODO make a common function to get the current timestamp.
|
||||
updateAccount(getAccountByUserName(userName).get.copy(
|
||||
mailAddress = form.mailAddress,
|
||||
url = form.url,
|
||||
updatedDate = currentDate))
|
||||
url = form.url))
|
||||
|
||||
redirect("/%s".format(userName))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user