Skip to content

Commit

Permalink
Merge pull request #124 from team-winey/dev
Browse files Browse the repository at this point in the history
[Fix] timeAgo ์‹œ๊ฐ„ ์ถ”๊ฐ€ ๋ฐฐํฌ
  • Loading branch information
funnysunny08 authored Aug 14, 2023
2 parents 4776b36 + db95734 commit 4217354
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/winey/server/service/FeedService.java
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ private String getTimeAgo(LocalDateTime createdAt) {
if (ChronoUnit.DAYS.between(now, createdAt) != 0) {
return Math.abs(ChronoUnit.DAYS.between(now, createdAt)) + "์ผ์ „";
}
if (ChronoUnit.HOURS.between(now, createdAt) != 0) {
return Math.abs(ChronoUnit.HOURS.between(now, createdAt)) + "์‹œ๊ฐ„์ „";
}
if (ChronoUnit.MINUTES.between(now, createdAt) != 0) {
return Math.abs(ChronoUnit.MINUTES.between(now, createdAt)) + "๋ถ„์ „";
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/winey/server/service/NotiService.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ private String getTimeAgo(LocalDateTime createdAt) {
if (ChronoUnit.DAYS.between(now, createdAt) != 0) {
return Math.abs(ChronoUnit.DAYS.between(now, createdAt)) + "์ผ์ „";
}
if (ChronoUnit.HOURS.between(now, createdAt) != 0) {
return Math.abs(ChronoUnit.HOURS.between(now, createdAt)) + "์‹œ๊ฐ„์ „";
}
if (ChronoUnit.MINUTES.between(now, createdAt) != 0) {
return Math.abs(ChronoUnit.MINUTES.between(now, createdAt)) + "๋ถ„์ „";
}
Expand Down

0 comments on commit 4217354

Please sign in to comment.