Passing a date of LocalDate(1840, 12, 1) returns 30 November 1840 using the following code. I believe the date is correctly parsing from a java.time.LocalDate to an org.joda.time.LocalDate.
import org.joda.time.{LocalDate => JodaDate}
import java.time.{LocalDate => JavaDate}
def formatDate(date: JavaDate)(implicit messages: Messages): Html = {
val convertedDate: JodaDate = new JodaDate(date.getYear, date.getMonthValue, date.getDayOfMonth)
val formattedDate: String = languageUtils.Dates.formatDate(convertedDate)
HtmlFormat.escape(formattedDate)
}
Passing a date of
LocalDate(1840, 12, 1)returns30 November 1840using the following code. I believe the date is correctly parsing from ajava.time.LocalDateto anorg.joda.time.LocalDate.