Merge pull request #56 from erickadbay/dev-erick

Fixed recording duration
This commit is contained in:
Zachary Chai
2016-11-29 17:43:44 -05:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@ -140,8 +140,7 @@ class @Recordings
if !@owner
table_api.column(-1).visible(false)
for recording in data.recordings
totalMinutes = Math.round((new Date(recording.end_time) - new Date(recording.start_time)) / 1000 / 60)
recording.duration = totalMinutes
recording.duration = recording.length
data.recordings.sort (a,b) ->
return new Date(b.start_time) - new Date(a.start_time)
table_api.clear()