Skip to content

Commit

Permalink
Merge pull request #3319 from AtlasOfLivingAustralia/feature/issue3311
Browse files Browse the repository at this point in the history
commit updates #3311
  • Loading branch information
chrisala authored Sep 6, 2024
2 parents 2aeb7f2 + ff94d30 commit cac51f3
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,15 @@ class ActivityController {
Workbook workbook = WorkbookFactory.create(file.inputStream)

def data = excelImportService.convertColumnMapConfigManyRows(workbook, config)
data.each { row ->
for (entry in row) {
if (entry.value instanceof org.joda.time.LocalDate) {
//update the type for the datepicker
entry.value = entry.value.toDate()

}
}
}

// Do species lookup
def species = model.find {it.dataType == 'species'}
Expand Down

0 comments on commit cac51f3

Please sign in to comment.