mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-12 12:40:29 +08:00
Fixes the display of minutes in the video player (#5140)
* video timestamp * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
0dc49b4c51
commit
cd1353fa3e
6
.changeset/wide-bars-train.md
Normal file
6
.changeset/wide-bars-train.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@gradio/video": patch
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Fixes the display of minutes in the video player
|
@ -67,7 +67,7 @@
|
||||
|
||||
const minutes = Math.floor(seconds / 60);
|
||||
let _seconds: number | string = Math.floor(seconds % 60);
|
||||
if (seconds < 10) _seconds = `0${_seconds}`;
|
||||
if (_seconds < 10) _seconds = `0${_seconds}`;
|
||||
|
||||
return `${minutes}:${_seconds}`;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user