Collection time should not include milliseconds when selecting based off time

This commit is contained in:
Dan Paulat 2025-01-19 23:42:37 -06:00
parent 607d72d7bb
commit e522f85a72

View file

@ -1507,10 +1507,10 @@ RadarProductManager::GetLevel2Data(wsr88d::rda::DataBlockType dataBlockType,
if (recordRadarData != nullptr)
{
auto& radarData0 = (*recordRadarData)[0];
auto collectionTime =
auto& radarData0 = (*recordRadarData)[0];
auto collectionTime = std::chrono::floor<std::chrono::seconds>(
scwx::util::TimePoint(radarData0->modified_julian_date(),
radarData0->collection_time());
radarData0->collection_time()));
// Find the newest radar data, not newer than the selected time
if (radarData == nullptr ||