Skip to content

Commit

Permalink
Merge pull request #1085 from j-chimienti/patch-1
Browse files Browse the repository at this point in the history
Update DefaultClock.scala to fix time generation
  • Loading branch information
adamw authored Jul 6, 2023
2 parents 739a596 + 6bebf93 commit 6d0ec0a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ object DefaultClock extends Clock {

override def now[F[_]: Sync](): F[Instant] = {
for {
now <- CatsClock[F].realTime.map(_.length)
now <- CatsClock[F].realTime.map(_.toMillis)
instant = Instant.ofEpochMilli(now)
} yield instant
}
Expand Down

0 comments on commit 6d0ec0a

Please sign in to comment.