import humanWeekDay from './humanWeekDay';

export default function($index) {
  let today = new Date().getDay();
  let day = today + $index / 2;
  let night = day != day.toFixed();
  let weekDay = night ? 'noc' : humanWeekDay(day);

  return weekDay;
}

import humanWeekDay from './humanWeekDay';

export default function($index) {
  let today = new Date().getDay();
  let day = today + $index / 2;
  let night = day != day.toFixed();

  day = day > 7 ? day - 7 : day;

  return night ? 'noc' : humanWeekDay(day);
}

fix blank forecast icons weekDay