Skip to content

Commit

Permalink
시간 롤백
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-DoHa committed Nov 23, 2022
1 parent d9198ee commit f70f4cc
Show file tree
Hide file tree
Showing 18 changed files with 77 additions and 88 deletions.
Binary file modified .gradle/7.5.1/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/7.5.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified build/libs/csletter-0.0.1-SNAPSHOT.jar
Binary file not shown.

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions build/reports/tests/test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h1>Test Summary</h1>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.079s</div>
<div class="counter">0.063s</div>
<p>duration</p>
</div>
</td>
Expand Down Expand Up @@ -85,7 +85,7 @@ <h2>Packages</h2>
<td>1</td>
<td>0</td>
<td>0</td>
<td>0.079s</td>
<td>0.063s</td>
<td class="success">100%</td>
</tr>
</tbody>
Expand All @@ -112,7 +112,7 @@ <h2>Classes</h2>
<td>1</td>
<td>0</td>
<td>0</td>
<td>0.079s</td>
<td>0.063s</td>
<td class="success">100%</td>
</tr>
</tbody>
Expand All @@ -126,7 +126,7 @@ <h2>Classes</h2>
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 7.5.1</a> at 2022. 11. 23. 오후 10:21:36</p>
<a href="http://www.gradle.org">Gradle 7.5.1</a> at 2022. 11. 23. 오후 11:39:20</p>
</div>
</div>
</body>
Expand Down
6 changes: 3 additions & 3 deletions build/reports/tests/test/packages/com.project.csletter.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h1>Package com.project.csletter</h1>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.079s</div>
<div class="counter">0.063s</div>
<p>duration</p>
</div>
</td>
Expand Down Expand Up @@ -83,7 +83,7 @@ <h2>Classes</h2>
<td>1</td>
<td>0</td>
<td>0</td>
<td>0.079s</td>
<td>0.063s</td>
<td class="success">100%</td>
</tr>
</table>
Expand All @@ -96,7 +96,7 @@ <h2>Classes</h2>
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 7.5.1</a> at 2022. 11. 23. 오후 10:21:36</p>
<a href="http://www.gradle.org">Gradle 7.5.1</a> at 2022. 11. 23. 오후 11:39:20</p>
</div>
</div>
</body>
Expand Down

Large diffs are not rendered by default.

Binary file modified build/test-results/test/binary/output.bin
Binary file not shown.
Binary file modified build/test-results/test/binary/output.bin.idx
Binary file not shown.
Binary file modified build/test-results/test/binary/results.bin
Binary file not shown.
Binary file modified build/tmp/compileJava/previous-compilation-data.bin
Binary file not shown.
17 changes: 3 additions & 14 deletions src/main/java/com/project/csletter/global/BaseTimeEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

@EntityListeners(AuditingEntityListener.class)
@MappedSuperclass
Expand All @@ -16,19 +16,8 @@ public abstract class BaseTimeEntity {

@CreatedDate
@Column(updatable = false)
private String createDate;
private LocalDateTime createDate;

@LastModifiedDate
private String lastModifiedDate;

@PrePersist
public void onPrePersist(){
this.createDate = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy/MM/dd/HH/mm/ss"));
this.lastModifiedDate = this.createDate;
}

@PreUpdate
public void onPreUpdate(){
this.lastModifiedDate = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy/MM/dd/HH/mm/ss"));
}
private LocalDateTime lastModifiedDate;
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class MessageListResponse {
private String toMemberToken;
private Long color;
private Boolean haveNextMessage;
private String time;
private LocalDateTime time;
private Boolean isCorrect;
private Boolean isRead;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class MessageResponse {
private String nickname;
private String toMemberToken;
private Long color;
private String time;
private LocalDateTime time;
private MarkingLastResponse markingResult;

@Builder
Expand Down

0 comments on commit f70f4cc

Please sign in to comment.