Change java.sql.Date to java.sql.Timestamp.

This commit is contained in:
takezoe
2013-06-22 14:41:20 +09:00
parent 0294c32fb8
commit 2881df65a7
5 changed files with 14 additions and 14 deletions

View File

@@ -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,

View File

@@ -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,