From 40ee86a6a43062f8d77d0bc3b4668e3bfd39c30d Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 14 Sep 2017 16:14:47 -0400 Subject: [PATCH] add temp fix for recording length in milliseconds --- app/assets/javascripts/recordings.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/recordings.coffee b/app/assets/javascripts/recordings.coffee index eccd9fb3..d9edad85 100644 --- a/app/assets/javascripts/recordings.coffee +++ b/app/assets/javascripts/recordings.coffee @@ -224,7 +224,9 @@ class @Recordings table_api.column(COLUMN.ACTION).visible(false) table_api.column(COLUMN.VISIBILITY).visible(false) for recording in data.recordings - recording.duration = recording.length + # NOTE: Temporary fix for the minutes to milliseconds bug some recordings may have + # experienced when transitioning from BigBlueButton 1.1 to BigBlueButton 2.0. + recording.duration = if recording.duration < 1000 then recording.duration else parseInt(recording.length / 60000) data.recordings.sort (a,b) -> return new Date(b.start_time) - new Date(a.start_time) table_api.clear()