Fix Clock being read as an absolute time rather than duration (#10706)

* Fix Clock being read as an absolute time rather than duration

* Round durations and update snapshots
This commit is contained in:
Michael Telatynski 2023-04-25 17:10:46 +01:00 committed by GitHub
parent 86ea059de6
commit 8783021e53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 75 additions and 34 deletions

View file

@ -112,16 +112,18 @@ exports[`VoiceBroadcastPlaybackBody when rendering a buffering voice broadcast s
<div
class="mx_VoiceBroadcastBody_timerow"
>
<span
<time
class="mx_Clock"
datetime="PT0S"
>
00:00
</span>
<span
</time>
<time
class="mx_Clock"
datetime="-PT23M42S"
>
-23:42
</span>
</time>
</div>
</div>
</div>
@ -223,16 +225,18 @@ exports[`VoiceBroadcastPlaybackBody when rendering a pause/not-live broadcast sh
<div
class="mx_VoiceBroadcastBody_timerow"
>
<span
<time
class="mx_Clock"
datetime="PT0S"
>
00:00
</span>
<span
</time>
<time
class="mx_Clock"
datetime="-PT23M42S"
>
-23:42
</span>
</time>
</div>
</div>
</div>
@ -346,16 +350,18 @@ exports[`VoiceBroadcastPlaybackBody when rendering a playing broadcast in pip mo
<div
class="mx_VoiceBroadcastBody_timerow"
>
<span
<time
class="mx_Clock"
datetime="PT0S"
>
00:00
</span>
<span
</time>
<time
class="mx_Clock"
datetime="-PT23M42S"
>
-23:42
</span>
</time>
</div>
</div>
</div>
@ -457,16 +463,18 @@ exports[`VoiceBroadcastPlaybackBody when rendering a playing broadcast should re
<div
class="mx_VoiceBroadcastBody_timerow"
>
<span
<time
class="mx_Clock"
datetime="PT0S"
>
00:00
</span>
<span
</time>
<time
class="mx_Clock"
datetime="-PT23M42S"
>
-23:42
</span>
</time>
</div>
</div>
</div>
@ -576,16 +584,18 @@ exports[`VoiceBroadcastPlaybackBody when rendering a playing/live broadcast shou
<div
class="mx_VoiceBroadcastBody_timerow"
>
<span
<time
class="mx_Clock"
datetime="PT0S"
>
00:00
</span>
<span
</time>
<time
class="mx_Clock"
datetime="-PT23M42S"
>
-23:42
</span>
</time>
</div>
</div>
</div>
@ -667,16 +677,18 @@ exports[`VoiceBroadcastPlaybackBody when rendering a stopped broadcast should re
<div
class="mx_VoiceBroadcastBody_timerow"
>
<span
<time
class="mx_Clock"
datetime="PT0S"
>
00:00
</span>
<span
</time>
<time
class="mx_Clock"
datetime="-PT23M42S"
>
-23:42
</span>
</time>
</div>
</div>
</div>

View file

@ -44,11 +44,12 @@ exports[`VoiceBroadcastRecordingPip when rendering a paused recording should ren
<div
class="mx_Icon mx_Icon_16"
/>
<span
<time
class="mx_Clock"
datetime="PT4H"
>
4h 0m 0s left
</span>
</time>
</div>
</div>
<div
@ -145,11 +146,12 @@ exports[`VoiceBroadcastRecordingPip when rendering a started recording should re
<div
class="mx_Icon mx_Icon_16"
/>
<span
<time
class="mx_Clock"
datetime="PT4H"
>
4h 0m 0s left
</span>
</time>
</div>
</div>
<div