Wrong time in GribRecordPDS.getGMTForecastTime()
Status: Beta
Brought to you by:
kjellr
The methods GribRecordPDS.getGMTForecastTime() and GribRecordPDS.getGMTBaseTime() return corrupted times when called subsequently. With every call, the difference between the local timezone and GMT is substracted from the Calender object. Thus, with every call, the value forecastTime and baseTime objects altered, resulting in wrong results for subsequent calls.
The bug is caused by a missing call of clone() in both methods. Attached a fixed Version of GribRecordPDS.java
Cheers,
Johannes
Fixed file GribRecordPDS.java