mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-09 15:05:50 +01:00
Change java.sql.Date to java.sql.Timestamp.
This commit is contained in:
@@ -38,7 +38,7 @@ trait AccountControllerBase extends ControllerBase {
|
||||
|
||||
post("/:userName/_edit", form)(ownerOnly { form =>
|
||||
val userName = params("userName")
|
||||
val currentDate = new java.sql.Date(System.currentTimeMillis)
|
||||
val currentDate = new java.sql.Timestamp(System.currentTimeMillis)
|
||||
updateAccount(getAccountByUserName(userName).get.copy(
|
||||
mailAddress = form.mailAddress,
|
||||
url = form.url,
|
||||
|
||||
@@ -36,7 +36,7 @@ trait UsersControllerBase extends ControllerBase { self: AccountService with Adm
|
||||
})
|
||||
|
||||
post("/admin/users/_new", newForm)(adminOnly { form =>
|
||||
val currentDate = new java.sql.Date(System.currentTimeMillis)
|
||||
val currentDate = new java.sql.Timestamp(System.currentTimeMillis)
|
||||
createAccount(Account(
|
||||
userName = form.userName,
|
||||
password = form.password,
|
||||
@@ -57,7 +57,7 @@ trait UsersControllerBase extends ControllerBase { self: AccountService with Adm
|
||||
|
||||
post("/admin/users/:name/_edit", editForm)(adminOnly { form =>
|
||||
val userName = params("userName")
|
||||
val currentDate = new java.sql.Date(System.currentTimeMillis)
|
||||
val currentDate = new java.sql.Timestamp(System.currentTimeMillis)
|
||||
updateAccount(getAccountByUserName(userName).get.copy(
|
||||
password = form.password,
|
||||
mailAddress = form.mailAddress,
|
||||
|
||||
Reference in New Issue
Block a user