diff --git a/example/src/components/timelabel/TimeLabel.tsx b/example/src/components/timelabel/TimeLabel.tsx
index b89928fa3..4baa5b6ab 100644
--- a/example/src/components/timelabel/TimeLabel.tsx
+++ b/example/src/components/timelabel/TimeLabel.tsx
@@ -24,12 +24,16 @@ export const TimeLabel = (props: TimeLabelProps) => {
return {LIVE_LABEL};
}
- const renderHours = duration >= 3600 * 1e3;
- const s = renderHours ? 11 : 14;
- const currentTimeLabel = new Date(currentTime).toISOString().substring(s, 19);
- const durationLabel = new Date(duration).toISOString().substring(s, 19);
- const label = showDuration ? `${currentTimeLabel} / ${durationLabel}` : currentTimeLabel;
- return {label};
+ try {
+ const renderHours = duration >= 3600 * 1e3;
+ const s = renderHours ? 11 : 14;
+ const currentTimeLabel = new Date(currentTime).toISOString().substring(s, 19);
+ const durationLabel = new Date(duration).toISOString().substring(s, 19);
+ const label = showDuration ? `${currentTimeLabel} / ${durationLabel}` : currentTimeLabel;
+ return {label};
+ } catch (ignore) {
+ return <>>;
+ }
};
TimeLabel.defaultProps = {