old_contents: import moment from 'moment';
  
  const dayString = (d, dayStrings) => {
      const day = moment(d);
      const today = moment().utc().subtract(3, 'hours');;
      const isToday = day.isBetween(
          today.clone().startOf('day'),
          today.clone().endOf('day')
      );
      const diff = day.diff(today, 'days');
      if (isToday) {
          return dayStrings.today;
      }
      if (diff <= 1) {
          return dayStrings.tomorrow;
      }
      if (diff <= 2) {
          return dayStrings.dayAfterTomorrow;
      }
      return day.format('LL');
  };
  
  export { dayString };
  
new_contents: import moment from 'moment';
  
  const dayString = (d, dayStrings) => {
      const day = moment(d);
      const today = moment().utc().subtract(3, 'hours');;
      const isToday = day.isBetween(
          today.clone().startOf('day'),
          today.clone().endOf('day')
      );
      const diff = day.clone().endOf('day').diff(today.clone().endOf('day'), 'days');
      if (isToday) {
          return dayStrings.today;
      }
      if (diff <= 1) {
          return dayStrings.tomorrow;
      }
      if (diff <= 2) {
          return dayStrings.dayAfterTomorrow;
      }
      return day.format('LL');
  };
  
  export { dayString };
  
subject: fix timestring bug