Fix Dockerfile.local except volumes

This commit is contained in:
Guntis Smaukstelis
2025-03-01 18:16:56 +02:00
parent 4bd3733781
commit f0c5d2c42b
5 changed files with 21 additions and 10 deletions
+3 -1
View File
@@ -83,8 +83,10 @@ object GribParser {
hour = bytes(16)
minute = bytes(17)
second = bytes(18)
currentMonth = ZonedDateTime.now(ZoneOffset.UTC).getMonthValue()
validMonth = if (month < 1 || month > 12) currentMonth else month
referenceTime = ZonedDateTime.of(
year, month, day,
year, validMonth, day,
hour, minute, second, 0, // last 0 is nanos
ZoneOffset.UTC // This is what 'Z' represents - UTC/Zero offset
)