Skip to content

Commit 88e46fb

Browse files
committed
BUFR: fix edition 2 year
1 parent 7459fe2 commit 88e46fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ingest/src/ingest/bufr/Sections.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,9 @@ bool Section1::fromBuffer(uint8_t *buf, int size, uint8_t edition) {
150150
year = buffer[15 + eshift];
151151
eshift--;
152152
}
153-
154153
if (year < 100)
155154
year += 100;
156-
else
155+
if (year > 1900)
157156
year -= 1900;
158157

159158
memset(&bufr_time, 0, sizeof(struct tm));

0 commit comments

Comments
 (0)