Dynamic countdown timer

ı am using dynamic countdown timer and pull json data and timer works accordingly with json data very well.I sort data as earlier data. And timer run depend on earlier data and when data is expended date the timer run depend on next date. Everything is okey until now…But ı want to when date is today is will be like 0 days 0 hours 0 minutes and timer will be start next day depend on next earlier date .Hopefully ı am able to explain my problem.


  .then(data => {
    this.myEvents= data;
   this.myEvents= this.myEvents.filter(
      m => new Date(m.start_time) >= new Date(this.today)
    this.myEvents.sort((x,y) => new Date(x.start_time).getTime() - new Date(y.start_time).getTime());**//this is make sort as earlier.**

  this.eventDate=new Date(this.myEvents[0].start_time);
  Observable.interval(1000).map((x) => {
      this.diff = Math.floor((this.eventDate.getTime() - new Date().getTime()) / 1000);
  }).subscribe((x) => {           
      this.days = this.getDays(this.diff);
      this.hours = this.getHours(this.diff);
      this.minutes = this.getMinutes(this.diff);
      this.seconds = this.getSeconds(this.diff);