mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-21 20:48:00 +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
|
||||
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.userSlug = $state.params.slug
|
||||
|
|
Loading…
Reference in a new issue