Skip to content

Commit

Permalink
Fix "plus" methods in LocalDate, they were expecting Doubles instead …
Browse files Browse the repository at this point in the history
…of Longs.
  • Loading branch information
rpiaggio committed Jul 19, 2016
1 parent 82c96d5 commit f22ed6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def BaseProject(name: String): Project =
Project(name, file(name))
.settings(
organization := "com.zoepepper",
version := "1.0.2",
version := "1.0.4",
scalaVersion := "2.11.8",
scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings"),
homepage := Some(url("https://github.com/zoepepper/scalajs-jsjoda")),
Expand Down
8 changes: 4 additions & 4 deletions java-time-drop-in/src/main/scala/java/time/LocalDate.scala
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ class LocalDate protected[time](f: LocalDateF) extends Wraps(f) with ChronoLocal
def minusYears(yearsToSubtract: Double): LocalDate = f.minusYears(yearsToSubtract)
def plus(amountToAdd: Long, unit: TemporalUnit): LocalDate = f.plus(amountToAdd, unit)
def plus(amount: TemporalAmount): LocalDate = f.plus(amount)
def plusDays(daysToAdd: Double): LocalDate = f.plusDays(daysToAdd)
def plusMonths(monthsToAdd: Double): LocalDate = f.plusMonths(monthsToAdd)
def plusWeeks(weeksToAdd: Double): LocalDate = f.plusWeeks(weeksToAdd)
def plusYears(yearsToAdd: Double): LocalDate = f.plusYears(yearsToAdd)
def plusDays(daysToAdd: Long): LocalDate = f.plusDays(daysToAdd)
def plusMonths(monthsToAdd: Long): LocalDate = f.plusMonths(monthsToAdd)
def plusWeeks(weeksToAdd: Long): LocalDate = f.plusWeeks(weeksToAdd)
def plusYears(yearsToAdd: Long): LocalDate = f.plusYears(yearsToAdd)
def toEpochDay(): Long = f.toEpochDay().toLong
def until(endDateExclusive: ChronoLocalDate): Period = f.until(endDateExclusive)
def `with`(adjuster: TemporalAdjuster): LocalDate = f.`with`(adjuster)
Expand Down

0 comments on commit f22ed6c

Please sign in to comment.