Skip to content

Commit 1fe1f93

Browse files
Faraz32123Muhammad Faraz  Maqsood
andauthored
fix: incorrect video durations (openedx#1856)
- fix: incorrect video durations in video info tab and videos list view Co-authored-by: Muhammad Faraz Maqsood <[email protected]>
1 parent fbc1273 commit 1fe1f93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/files-and-videos/videos-page/data

src/files-and-videos/videos-page/data/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const getFormattedDuration = (value) => {
6161
}
6262
const seconds = Math.floor(value % 60);
6363
const minutes = Math.floor((value / 60) % 60);
64-
const hours = Math.floor((value / 360) % 60);
64+
const hours = Math.floor(value / 3600);
6565
const zeroPad = (num) => String(num).padStart(2, '0');
6666
return [hours, minutes, seconds].map(zeroPad).join(':');
6767
};

0 commit comments

Comments
 (0)