Skip to content

Commit

Permalink
Issue 765 - Updated earliest begin time to earliest supported value
Browse files Browse the repository at this point in the history
  • Loading branch information
zack-rma committed Oct 8, 2024
1 parent 6d3479e commit 42fe88f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
import io.javalin.plugin.openapi.annotations.OpenApiRequestBody;
import io.javalin.plugin.openapi.annotations.OpenApiResponse;
import java.math.BigDecimal;
import java.time.Instant;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.List;
Expand Down Expand Up @@ -294,7 +295,8 @@ public void getAll(@NotNull Context ctx) {
if (begin != null) {
beginZdt = DateUtils.parseUserDate(begin, timezone);
} else {
beginZdt = ZonedDateTime.of(1900, 1, 1, 0, 0, 0, 0, tz);
// uses earliest supported time in CWMS
beginZdt = ZonedDateTime.ofInstant(Instant.ofEpochMilli(-999999999L), tz);
}

LocationLevels levels = levelsDao.getLocationLevels(cursor, pageSize, levelIdMask,
Expand Down

0 comments on commit 42fe88f

Please sign in to comment.