mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-02-16 18:14:23 +01:00
HWC date check converts local time to UTC
This commit is contained in:
parent
59130e0bda
commit
7cda67ece1
1 changed files with 3 additions and 1 deletions
|
@ -33,7 +33,9 @@ module.exports = angular.module('ponyfm').directive 'pfmTrackEditor', () ->
|
||||||
$scope.isAdmin = auth.data.isAdmin
|
$scope.isAdmin = auth.data.isAdmin
|
||||||
albumsDb = {}
|
albumsDb = {}
|
||||||
|
|
||||||
$scope.disableHwc = new Date > new Date('2016-12-20 23:59:59')
|
d = new Date()
|
||||||
|
currentDate = d.getTime() + (d.getTimezoneOffset() * 60000)
|
||||||
|
$scope.disableHwc = currentDate > new Date('2016-12-20 23:59:59 GMT')
|
||||||
|
|
||||||
$scope.data = upload
|
$scope.data = upload
|
||||||
$scope.userSlug = $state.params.slug
|
$scope.userSlug = $state.params.slug
|
||||||
|
|
Loading…
Reference in a new issue