diff --git a/src/time.tsx b/src/time.tsx index 560cb83b88..11e30634cd 100644 --- a/src/time.tsx +++ b/src/time.tsx @@ -187,7 +187,8 @@ export default class Time extends Component { renderTimes = (): JSX.Element[] => { let times: Date[] = []; - const format = this.props.format ? this.props.format : "p"; + const format = + typeof this.props.format === "string" ? this.props.format : "p"; const intervals = this.props.intervals ?? Time.defaultProps.intervals; const activeDate =