Skip to content

Commit

Permalink
Fix a warning and update compile settings (#32)
Browse files Browse the repository at this point in the history
* Remove warning for implicit conversion

* Update compile options
  • Loading branch information
ekrich authored Jun 2, 2021
1 parent b3c41ab commit 219d94f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ inThisBuild(
)

val commonSettings: Seq[Setting[_]] = Seq(
scalacOptions ++= Seq("-deprecation", "-feature") // "-Xfatal-warnings"),
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-Xsource:3")
)

lazy val root = (project in file("."))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ private[time] object PlatformSpecific extends PlatformCommon {
val epochSeconds = Instant.toEpochSecond(System.currentTimeMillis())
// sec/yr, sec/day, sec/hr, sec/min
val currentSeconds =
Math.floor((((epochSeconds % 31536000) % 86400) % 3600) % 60).toInt
Math.floor(((((epochSeconds % 31536000) % 86400) % 3600) % 60).toDouble).toLong
LocalTime.ofSecondOfDay(currentSeconds)
// From https://github.com/akka-js/scalanative-java-time
// val currentHours = Math.floor(((seconds % 31536000) % 86400) / 3600).toInt
Expand Down

0 comments on commit 219d94f

Please sign in to comment.