Skip to content

Commit

Permalink
Merge pull request #65 from Swetugg/ThindalTV-patch-1
Browse files Browse the repository at this point in the history
Update now.js
  • Loading branch information
ThindalTV authored Feb 7, 2024
2 parents 02b6c0c + 8aa3bb7 commit 5638d91
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wwwroot/sthlm-2024/js/now.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@ nowApp.controller('NowController', function NowController($scope, $http, $interv
$http.get('now-feed').then(function (response) {
$scope.slots = response.data;
for (var n = 0; n < $scope.slots.length; n++) {
$scope.slots[n].start = Date.parse($scope.slots[n].start)+(60*60*1000);
$scope.slots[n].end = Date.parse($scope.slots[n].end)+(60*60*1000);
$scope.slots[n].start = Date.parse($scope.slots[n].start);
$scope.slots[n].end = Date.parse($scope.slots[n].end);
}
filterSlots();
})
};

filterSlots = function () {
var now = new Date();
// Ugly mod to fix date error onsite
var now = new Date()-60000;

var nextSlotIndex = 0;
var currentSlotIndex = null;
Expand Down

0 comments on commit 5638d91

Please sign in to comment.