Error : Situation or Alerts contain invalid data. The system is unable to display the Timeline.
Solution : UI shows this Error if the date/time format you are using for your events isn't EPOCH .It might be possible that format is not being read correctly and causing that unusual behaviour. We recommend you use Epoch time instead.
Change the code and retest:
var d = new Date();
var epoch_seconds = Math.round(d.getTime() / 1000);
moog_agent_time = epoch_seconds;