Skip to content

Commit

Permalink
refactor: TimeUtil의 now를 toInstant로 변경한다
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb committed Mar 12, 2024
1 parent 55478a4 commit 35907de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/me/nalab/api/core/TimeUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ object TimeUtil {

private var clock: Clock? = null

fun toInstant(): Instant {
fun now(): Instant {
val current = if (clock != null) {
Instant.now(clock)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ class Bookmark(
companion object {
private const val BOOKMARK_DEFAULT_STATE = false

fun impossible(): Bookmark = Bookmark(bookmarkedAt = TimeUtil.toInstant())
fun impossible(): Bookmark = Bookmark(bookmarkedAt = TimeUtil.now())
}
}

0 comments on commit 35907de

Please sign in to comment.