diff --git a/src/main/java/com/example/cosmos_serversb/entities/Request.java b/src/main/java/com/example/cosmos_serversb/entities/Request.java index f18b8db..c863127 100644 --- a/src/main/java/com/example/cosmos_serversb/entities/Request.java +++ b/src/main/java/com/example/cosmos_serversb/entities/Request.java @@ -44,7 +44,7 @@ this.done = false; } - public void update(String uId, String product, Date deadline, int location, boolean done){ + public void update(String uId, String product, String deadline, int location, boolean done){ setIssuerUid(uId); setProduct(product); setDeadline(deadline); @@ -109,7 +109,7 @@ } //String型をDate型に変換 try { - SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); this.deadline = sdf.parse(deadline); }catch (ParseException e){ e.printStackTrace();