Fix text product start time when first P-VTEC uses 000000T0000Z

This commit is contained in:
Dan Paulat 2023-05-29 00:47:47 -05:00
parent 58a2d8982a
commit 45b0df3e0b
3 changed files with 90 additions and 5 deletions

View file

@ -421,8 +421,7 @@ AlertModelImpl::GetStartTime(const types::TextEventKey& key)
if (messageList.size() > 0)
{
auto& firstMessage = messageList.front();
auto firstSegment = firstMessage->segment(0);
return firstSegment->header_->vtecString_[0].pVtec_.event_begin();
return firstMessage->segment_event_begin(0);
}
else
{