Skip to content

Commit

Permalink
Display correct expiration time
Browse files Browse the repository at this point in the history
  • Loading branch information
sirknightj committed May 3, 2024
1 parent 7e51ed7 commit 1b4447f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TurnServerViewer/TurnServerDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class TurnServerDisplay extends React.Component<TurnServerDisplayProps, TurnServ
<div style={{textAlign: 'center', marginBottom: '1rem'}}>
{this.state.msRemaining ?
<p>Session expires
at {this.props.fetchedAt.toLocaleString()} (in {Math.floor(msRemaining / 1000)}s)</p>
at {new Date(expiresAt).toLocaleString()} (in {Math.floor(msRemaining / 1000)}s)</p>
:
<p style={{color: 'red'}}>Expired!</p>
}
Expand Down

0 comments on commit 1b4447f

Please sign in to comment.