refactor(history): simplify time and date handling

Related to: CAM-2769
fix(engine): added missing comma to followUpBeforeOrNotExistent entry