Skip to content

Commit

Permalink
Merge pull request #123 from team-winey/fix/#122
Browse files Browse the repository at this point in the history
[Fix] timeAgo ์‹œ๊ฐ„ ์ถ”๊ฐ€
  • Loading branch information
funnysunny08 authored Aug 14, 2023
2 parents 6e03a71 + a4d3c02 commit db95734
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 db95734

Please sign in to comment.