Skip to content

Commit 35907de

Browse files
committed
refactor: TimeUtil의 now를 toInstant로 변경한다
1 parent 55478a4 commit 35907de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/me/nalab/api/core/TimeUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ object TimeUtil {
1212

1313
private var clock: Clock? = null
1414

15-
fun toInstant(): Instant {
15+
fun now(): Instant {
1616
val current = if (clock != null) {
1717
Instant.now(clock)
1818
} else {

src/main/kotlin/me/nalab/api/survey/domain/feedback/Bookmark.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ class Bookmark(
1717
companion object {
1818
private const val BOOKMARK_DEFAULT_STATE = false
1919

20-
fun impossible(): Bookmark = Bookmark(bookmarkedAt = TimeUtil.toInstant())
20+
fun impossible(): Bookmark = Bookmark(bookmarkedAt = TimeUtil.now())
2121
}
2222
}

0 commit comments

Comments
 (0)