From 0b82ac76fc45fda58472a91250ad177ef8ce7614 Mon Sep 17 00:00:00 2001 From: Joe Citrine Date: Tue, 20 Dec 2016 21:27:41 +0000 Subject: [PATCH] This is what I get for living in GMT+0 --- resources/assets/scripts/app/directives/track-editor.coffee | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/resources/assets/scripts/app/directives/track-editor.coffee b/resources/assets/scripts/app/directives/track-editor.coffee index e66a4bd6..46c4ac4c 100644 --- a/resources/assets/scripts/app/directives/track-editor.coffee +++ b/resources/assets/scripts/app/directives/track-editor.coffee @@ -32,10 +32,8 @@ module.exports = angular.module('ponyfm').directive 'pfmTrackEditor', () -> $scope.selectedAlbum = null $scope.isAdmin = auth.data.isAdmin albumsDb = {} - - d = new Date() - currentDate = d.getTime() + (d.getTimezoneOffset() * 60000) - $scope.disableHwc = currentDate > new Date('2016-12-20 23:59:59 GMT') + + $scope.disableHwc = false $scope.data = upload $scope.userSlug = $state.params.slug