We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b31b18 commit 52ac205Copy full SHA for 52ac205
cds/modules/records/serializers/vtt.py
@@ -102,5 +102,5 @@ def resize_link(frame, size):
102
def time_format(seconds):
103
"""Helper function to convert seconds to vtt time format."""
104
d = datetime.utcfromtimestamp(seconds)
105
- s = d.strftime("%M:%S.%f")
+ s = d.strftime("%H:%M:%S.%f")
106
return s[:-3]
tests/unit/test_serializer.py
@@ -87,7 +87,7 @@ def test_vtt_serializer(video_record_metadata):
87
]
88
89
# Check first and last timestamp
90
- assert start_times[0] == "00:00.000"
+ assert start_times[0] == "00:00:00.000"
91
assert end_times[-1] == VTT.time_format(
92
float(video_record_metadata["_files"][0]["tags"]["duration"])
93
)
0 commit comments