A......... [ZBX-7809] improved latest event calculation for triggers