'use strict';

angular.module('core').controller('HomeController', ['$scope', 'Authentication', 'moment', 'TeachersService',
  function ($scope, Authentication, moment, TeachersService) {
    var i, o;

    // This provides Authentication context.
    $scope.authentication = Authentication;

    $scope.teachers = TeachersService.query();

    $scope.version = version;

    $scope.dates = [];
    for (i = 0; i < 7; i++) {
      o = {};
      o.pretty = moment().add(i, 'days').format('ddd, MMM D');
      o.ms = moment().add(i, 'days').format('x');
      $scope.dates.push(o);
    }
  }
]);

@@ -428,30 +428,16 @@
     
-o = %7B%7D;%0A      o.pretty
+var temp
  = m
@@ -450,32 +450,69 @@
 ).add(i, 'days')
+;%0A      o = %7B%7D;%0A      o.pretty = temp
 .format('ddd, MM
@@ -531,39 +531,20 @@
  o.ms = 
-moment().add(i, 'days')
+temp
 .format(

fix customquestion date